Code needed to open mdb file

C

clme4hlp

I have created a program and I want it to open maximized to the switchboard
when I click on the file name. I have entered the DoCmd.Maximized under the
call to open, but I got no results. When I click on the file name Access
opens showing the window showing Tables, Forms, Queries, etc. Help!!!
 
T

Tom Wickerath

Call me,

You have two options:
1.) Create an Autoexec macro with the Openform action. Specify the name of
your switchboard form in the lower window. Then add another action: Maximize.

2.) Set your switchboard form as the startup form, using the Tools >
Startup... menu selection. You can deselect the option to display database
window, allow built-in toolbars, etc. Then add some code to the Open event
procedure of your switchboard form:

Private Sub Form_Open(Cancel As Integer)
DoCmd.Maximize
End Sub

Tom
________________________________________

:

I have created a program and I want it to open maximized to the switchboard
when I click on the file name. I have entered the DoCmd.Maximized under the
call to open, but I got no results. When I click on the file name Access
opens showing the window showing Tables, Forms, Queries, etc. Help!!!
 
Top