Bypass Startup Display Form?

P

Phil Hellmuth

I have an Access DB with a defined Startup Display Form. I also want to
be able call a macro via Windows Scheduled Tasks using a command like like:

"C:\Program Files\Microsoft Office\Office11\MSACCESS.EXE" "C:\MY
Documents\database.mdb" /x "macRunMe"

However, when the task begins to run and the database opens, the defined
Startup Display Form is opened, and the command to run the macro is
ignored. Are there any workarounds for this?

Thanks in advance.
 
S

Steve Schapel

Phil,

I can think of no reason for the running of the macro to be affected by
the existence of a startup form. Is there macro or code that runs on
the Open or Load event of the startup form? What are the details of the
macRunMe macro, i.e. what actions? The usual syntax of the command line
does not include ""s around the name of the macro - try it like this...
"C:\Program Files\Microsoft Office\Office11\MSACCESS.EXE" "C:\My
Documents\database.mdb" /x macRunMe
 

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