• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 830
  • Last Modified:

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.
0
morinia
Asked:
morinia
3 Solutions
 
Melih SARICAIT ManagerCommented:
F5
0
 
moriniaAdvanced Analytics AnalystAuthor Commented:
Melih,

F5 and run prompt for the name of  a macro.
0
 
mbizupCommented:
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
 
PatHartmanCommented:
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

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now