Order of execution

  • Thread starter Thread starter nxqviet
  • Start date Start date
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 ()
 
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()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top