PROCEDURES
A series of steps carried out in a specific order to achieve a desired result.
Each step in a procedure is a single line of code – a statement
Procedures are tied to events in your database. When the event happens (eg you open an object) Access calls the procedure.
There are two types of procedures:
Sub procedure:
Sub procedures are always contained within a pair of
Sub
Sub End
Sub procedures perform a task
Function procedure:
Function procedures perform calculations:
Function
End Function
A module may contain several procedures. Procedures within the same module are separated by a horizontal line. |