mbunster
asked on
Using autoexec macro to remove default menu bar and database window
Hi folks, I'm using A97.
In A2.0, you used to be able to say "database.hide" or something to that effect to hide the main database window. I don't find that functionality among the macro options in A97. What's the proper macro command to hide the database window as part of the autoexec (macro) process?
Also, I'd like to hide the default menu bar, so that none shows during runtime. Unfortunately, while the "built-in menu" shows up as one of the toolbars in Access' interactive mode, when I try to find it as an argument to the "ShowToolbar" macro command, it's not there. How can I execute this most simply?
Finally, I have a "developer reset" macro that lets me quickly return to my preferred settings for working on the app. If you have answers to the above, I'd also appreciate the way to reset these items to visible for that purpose.
Thanks!
In A2.0, you used to be able to say "database.hide" or something to that effect to hide the main database window. I don't find that functionality among the macro options in A97. What's the proper macro command to hide the database window as part of the autoexec (macro) process?
Also, I'd like to hide the default menu bar, so that none shows during runtime. Unfortunately, while the "built-in menu" shows up as one of the toolbars in Access' interactive mode, when I try to find it as an argument to the "ShowToolbar" macro command, it's not there. How can I execute this most simply?
Finally, I have a "developer reset" macro that lets me quickly return to my preferred settings for working on the app. If you have answers to the above, I'd also appreciate the way to reset these items to visible for that purpose.
Thanks!
The macro for hide database window is: RunCommand WindowHide
and to reset it is RunCommand WindowUnHide.
Usually I make an AutoKeys macro assigning WindowUnHide to a shortcut key so to unhide it during development.
For hiding the toolbar is: ShowToolbar Database No and ShowToolbar Formview No and ShowToolbar Print Preview No. These are usually sufficient, since most of your applications involving database view, form, and report.
To reset the toolbars, change it to yes. You can assign all these yes and unhide database window to a short cut key.
and to reset it is RunCommand WindowUnHide.
Usually I make an AutoKeys macro assigning WindowUnHide to a shortcut key so to unhide it during development.
For hiding the toolbar is: ShowToolbar Database No and ShowToolbar Formview No and ShowToolbar Print Preview No. These are usually sufficient, since most of your applications involving database view, form, and report.
To reset the toolbars, change it to yes. You can assign all these yes and unhide database window to a short cut key.
ASKER
Well, the first half works great--thanks.
However, the second part of the solution does not remove the default menu bar. I think you might have misread my question to ask about removing some of the various toolbars that are usually on (or might be). I'm talking about the main menu bar--the line at the top that says File--Edit--View, etc.
Sorry to reject the whole answer when there's partial credit to give...
However, the second part of the solution does not remove the default menu bar. I think you might have misread my question to ask about removing some of the various toolbars that are usually on (or might be). I'm talking about the main menu bar--the line at the top that says File--Edit--View, etc.
Sorry to reject the whole answer when there's partial credit to give...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks sanctified...works like a charm.
I 'm giving a B only because I really only needed half the answer.
I 'm giving a B only because I really only needed half the answer.
ASKER