Access 07 Startup Sub Main

M

MikeB

Where is the setting to specify a procedure in a basic module to execute on
startup as in AC 2003?
 
D

Dirk Goldgar

MikeB said:
I understand that, but you used to be able to specify a procedure in a
BAS module. Is that gone?


I'm not aware of that ever having been possible. Are you sure you aren't
thinking of using an AutoExec macro to execute a RunCode action?
 
D

Dirk Goldgar

MikeB said:
Where is the setting to specify a procedure in a basic module to execute
on startup as in AC 2003?


I'm not aware of any such setting in Access 2003, nor in earlier versions.
You can use an AutoExec macro to execute a RunCode action, or you can use a
startup form with code in its Open or Load event. Are you thinking of one
of those options?
 
M

MikeB

Dirk Goldgar said:
I'm not aware of that ever having been possible. Are you sure you aren't
thinking of using an AutoExec macro to execute a RunCode action?
Aargh! It's VB5/6.... Sorry. Big Brain Fart.
I guess when prototyping/testing in Access, I am used to typing the first
procedure in a BAS module as Sub Main or Sub SubMain and stepping through
the debugger from there and I was working in a project module and wanted to
initialize a class module from there. I got it working by calling the
subMain from the startup form. Thanks and sorry for the bother..
 

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