Access 07 Startup Sub Main

  • Thread starter Thread starter MikeB
  • Start date Start date
M

MikeB

Where is the setting to specify a procedure in a basic module to execute on
startup as in AC 2003?
 
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?
 
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?
 
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..
 
Back
Top