Order of execution

N

nxqviet

Hi all,

I have a question regarding the order in which Access VBA execute the
code. Here is a specific example:


Sub ONE ()
 
S

storrboy

Hi all,

I have a question regarding the order in which Access VBA execute the
code. Here is a specific example:

Sub ONE ()

There's nothing there to execute. The word Sub indicates the start of
a SUBroutine, VB would expect some other code to follow it with the
last line being End Sub.

Example:

Sub TestMe()
Dim vDate as Date
Msgbox "Today is " & vdate
End Sub

If you are trying to run the sub named ONE(), use the Call
statement... Call ONE()
 
Top