Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

vba

ResolvedVersion 2003

Emily has attended:
Access VBA course

VBA

How do you automate actions as soon as you open up the database? For instance - prompting the user as soon as they open the DB to enter their name.

RE: VBA

Hi Emily

Thank you for your question

Apologies for the delay in replying which was caused by a large volume of posts on the forum

The best solution to this problem is to create the function that you want to run. Then create a Macro called autoexec. This macro has a single command RunCode, and you enter the function name as a parameter of that command.

The autoexec macro will automatically run when the database opens

Regards

Stephen

Fri 27 Mar 2009: Automatically marked as resolved.

 

Training courses

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Access tip:

Relationship maps

It is important to create proper relationships between tables. You can use Access to help check your designs and evaluate them by printing them in graphical format to help with design purposes


Click on the Tools menu, click Relationships.
On the File menu, click Print Relationships. View or print as required

View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.