Novice2000 said:
Thanks Bruce. You really know your stuff.
Thanks, but not really compared to some of the folks here from whom I have
learned so much. They have been generous with their time and advice, and I
try to return the favor by offering suggestions that fall within my
knowledge and experience.
It already says minimize. Can I just replace that word with Maximize and
have it work?
What already says minimize?
Private Sub Form_Open(Cancel As Integer)
' Minimize the database window and initialize the form.
' Move to the switchboard page that is marked as the default.
Me.Filter = "[ItemNumber] = 0 AND [Argument] = 'Default' "
Me.FilterOn = True
End Sub
In what form do these lines of code reside? What is that form's purpose?
The line containing the word "minimize" is preceded by an apostrophe, which
means the line is a comment and not executable code. Changing it to
"maximize" will do nothing. I don't see any need to minimize the database
window (the box with tabs for Tables, Queries, and so forth that you see
when you start Access) through code, and I don't see how the code you
provided would accomplish that in any case, but maybe I am missing
something.
If you click Tools > Startup you can clear the checkbox for "Display
Database Window". Also, select your switchboard from the Display Form/Page
box. Click the Advanced tab and make sure that box is still checked.
Unless you have custom menus and toolbars you should probably leave the
rest of the boxes checked. Open that form in design view, mazimize it, save
it, and close it. Close the database, then double-click to open it. It
should open to the form you chose as the Startup form. If that form is not
maximized, you can get to the database window by pressing F11, and switch to
design view from there (or you can use the toolbar icon if it's available).
Add the words DoCmd.Maximize to the code.
A switchboard is typically an unbound form (not associated with a table or
query) that contains buttons, etc. to open various objects (forms and
reports, mostly; an object is a table, query, etc. represented by a tab on
the database window). However, a form in which data are entered or
displayed, and which also has buttons to open other database objects, could
function as a sort of switchboard. If there is a filter (as the code
suggests) I suspect this is the case. If so, what exactly is a switchboard
page in this case? A tab on a tabbed form?