autoexec macro

G

Guest

Hi
I have an assignment whereby I need to open my database automatically by
creating an AUTOEXEC macro?
Can someone give me a hint as to how to accomplish this please?
Regards
Tanya
 
B

bob

1. a macro within Access ONLY works when Access is open already...if you
create a macro called autoexec within Access it will run any time Access is
open.

2. a batch file can be set to open Access (and THEN run an AUTOEXEC
macro)..the batch file needs to contain the full path to the Access mdb.

Bob
 
T

tina

maybe you need to get some clarification on the requirements of your
assignment. an AutoExec macro, by definition, is a macro that runs
automatically when the database opens. you might be able to use an AutoExec
macro in one database to run code that opens another database - but i can't
see the purpose of that, since you still have to open the first database
yourself.

hth
 
G

Guest

Reading both your posts together has clarified this for me. I had some
understanding that an AutoExec Macro was a macro had could only run once the
db was opened and would initiate at startup and because of the wording of the
task was not sure.
I have since taken the instruction to mean that they want the form created
in the previous step to open automatically on startup and to use an autoexec
macro to accomplish this rather than going though tools>startup.
Kind Regards
Tanya
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top