Normally you would specify the form as the Startup Form
(Tools - Startup).
If you want to be able to open different forms from the
command line, you'll have to create a macro for each form.
Each macro's only action would be to open its corresponding
form. Then you can specify which macro to run at startup by
using the /X macroname command line option.
Yes this works fine when you are in the Access DB creating
code in the event of a form. I am looking for the DOS
command line to open a form from outside the DB.
Assuming you have a macro named OpenMyForm that opens form
MyForm, then the command line would be:
"path to ms access" "path to your mdb file" /X OpenMyForm
If you're trying to find a way to do this without changing
the mdb file, I think you're out of luck.
BTW, it won't answer your question, but you can create a
desktop shortcut to a form by just dragging the form object
from the database window to the desktop.
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.