Under Create – Macro/Add new Action I choose open Form & select the Form’s name. Close & open database & second form does not open. Any suggestions, please?
Under Create – Macro/Add new Action I choose open Form & select the Form’s name. Close & open database & second form does not open. Any suggestions, please?
What event are you using to trigger the macro?
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
Hi June, thanks for responding. I don't understand what you mean by, "event?" I don't see "Event" in the Macro set up windows. To clarify, when I open up a dbs I would like to know if/how 2-Forms (Form-A & Form-B) open simultaneously upon dbs opens.
I'm a little hazy as to your exact scenario, but if you want to run a given Macro, when the database opens, the Macro would have to be named AutoExec.
Alternately, of course, you could go into Access Options - Current Database and select the given Form in the 'Display Form' dropdown box.
Linq ;0)>
The problem with making anything foolproof...is that fools are so darn ingenious!
All posts/responses based on Access 2003/2007
An event is a button Click or form/report Open or form/report Load or control/form/report BeforeUpdate, AfterUpdate, etc.
If you want an Action to occur some Event must execute that Action.
For example, click a button to run code that opens a form or report.
You want to automatically open a 'second' form so what Event must happen to execute the Action? Code in 'first' form Open or Load event?
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
ling, thanks for responding. I know about your alternative suggestion, but I want to have more than one Form open when dbs is open/started. I once (way back) had a dbs where 2-Forms opened when dbs was opened, but I don't remember what/how I did.
I can't understand what you're saying. When creating a Macro I don't know how to have it be, AutoExec? Might you guide me on creating a AutoExec Macro?
If the name of the macro is AutoExec, the macro will execute at StartUp.
Thanks, that worked! I suppose Access only lets up have 2-Forms open upon Startup?
Additional code can open additional forms. Not sure what the maximum is but I will guess it is many more than two and would depend on the machine's available RAM.