Running a module in Microsoft Access 2003

Experts,

How do I run a  module from Access 2003?   Currently this is the only code in the Database. I want to see if it works.
moriniaAdvanced Analytics AnalystAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
mbizupConnect With a Mentor Commented:
The above answer is not entirely complete,


You need to open the VBA Editor first, by either hitting Ctrl-G or opening the module from database window.

At that point, F5 will work (specify the name of the sub or function you want to run)

You can also hit ctrl-G again, which will take you to the "immediate window" at the bottom of the vba editor.  From there, you can run the sub or function by typing it its name and specifying pass parameters as needed.
0
 
Melih SARICAConnect With a Mentor IT ManagerCommented:
F5
0
 
moriniaAdvanced Analytics AnalystAuthor Commented:
Melih,

F5 and run prompt for the name of  a macro.
0
 
PatHartmanConnect With a Mentor Commented:
The technical answer is - you don't run modules - you run procedures.  You need to run the sub or function contained in the module.  If there are multiple, you need to figure out what is the "main" procedure that invokes the others.  If they are all independent, you would need to run each in turn.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.