Solved

Running a module in Microsoft Access 2003

Posted on 2014-03-05
4
713 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 34

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…

762 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now