AUTO OPEN code in Access?

  • Thread starter norbert. beliso
  • Start date
N

norbert. beliso

Please.
Is there an AUTO_OPEN code for Access 2000 & 2002
thats similar to Excels AUTO_OPEN.

I just want to write code that executes
when user opens up my Access program.

thank you.
 
B

Bogdan Zamfir

There are few ways to accomplish this:

1. Create a macro named Autoexec, and from it add action RunCode which will
call your startup function, created in a module

or

2. Create a form to be startup form, go to menu Tools -> Startup, and select
it in Display form / Page dropdown list

HTH,
Bogdan
 
A

Alan

-----Original Message-----
Please.
Is there an AUTO_OPEN code for Access 2000 & 2002
thats similar to Excels AUTO_OPEN.

I just want to write code that executes
when user opens up my Access program.

thank you.
.
I would put the code in the On Activate event of the
first form that opens. If you go to Tools_Startup you can
select which form opens when the database opens.
 

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