Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access Startup

Status
Not open for further replies.

TidyTrax

Programmer
Jul 11, 2001
263
AU
This is probably a very simple question, but i want to write code into my module that populates a series of global areas on start up, so what i wanted to know is what is Onload sub call for the whole application??

IE: for form on load it is Private Sub Form_Load()

But what is it for when the database app is launched???

 
TidyTrax,

To my knowledge, there isn't one for the entire application, but you can simulate this by putting it in the OnLoad event of the startup form, or by calling an external function or sub from there.

John
 
You might try:

create a function which populates the "global areas" you want initialized;

create a macro named "Autoexec" which runs that function.

This way, when the user opens the database, the autoexec is kicked off and you should have your initialization done.

Good luck.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top