Solved

Running a module in Microsoft Access 2003

Posted on 2014-03-05
4
733 Views
Last Modified: 2014-03-05
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
Comment
Question by:morinia
4 Comments
 
LVL 19

Assisted Solution

by:Melih SARICA
Melih SARICA earned 83 total points
ID: 39906287
F5
0
 

Author Comment

by:morinia
ID: 39906341
Melih,

F5 and run prompt for the name of  a macro.
0
 
LVL 61

Accepted Solution

by:
mbizup earned 83 total points
ID: 39906345
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
 
LVL 35

Assisted Solution

by:PatHartman
PatHartman earned 84 total points
ID: 39906522
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question