Autoexecute VBA

M

Martin

For grins, I ran the Analyzer tool on an Autoexec Macro that runs a VB
function. It suggested I convert it to VBA. The converter created a
function called Autoexec_Autoexec.

Is this the standard name for a VB function that will execute each time the
database opens? Does this function need to be in a module with a specific
name as well? I can't find anything in VBA Help that defines this.

Thanks.
 
D

Douglas J. Steele

There's no way to have Access automatically run a function or sub when the
database opens.

Your only options are to specify a specific form to open (which can run the
function in its Open event), or to use an AutoExec macro that calls your
function (macros cannot call subs)
 

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