Chapter 11: FunctionProcedures


Overview

Up to this point, when I have spoken about procedures, I talked about subs (I am not including methods found in objects). Subs, as you will recall, are blocks of code that perform a task, but do not return a value to the caller.

The syntax for functions is similar to that of subs with only a few differences. Much of what you have learned will be used in a similar fashion. So, for that reason, this chapter will also serve as a review.

In this chapter, you will learn the differences between functions and subs, passing arguments, and examining the built-in functions. Needless to say, this will not be an exhaustive study of these built-in functions. That would require a book in itself. We will look at some commonly used functions, specifically the MsgBox function, as well as the built-in date, time, and payment functions.




Access VBA Programming
Microsoft Access VBA Programming for the Absolute Beginner
ISBN: 1598633937
EAN: 2147483647
Year: 2006
Pages: 214
Authors: Michael Vine

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net