Solved

Running a module in Microsoft Access 2003

Posted on 2014-03-05
4
742 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 36

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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Access/Visual Basic Question 3 29
Access Schema 6 28
Can mariadb access another server/database? 19 43
Pass Variable Form Name to another form in Access 16 22
This article explains all about SQL Server Piecemeal Restore with examples in step by step manner.
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.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

821 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