B
Bill
I have a database that consists of a form with buttons that are used to
access the various access databases we use in our group. The "Main Form"
database opens Access full screen with the form opening up in the screen
middle. When I click on one of the buttons, Access is opened in a smaller
window to the left that I continually have to "Maximize". I then also need
to move the switchboard form of each program to the middle as well.
Here is a sample of the code I have assigned to one of the buttons.
Private Sub cmdMyButton1_Click()
' Initialize string to database path.
Const strPath = "H:\MyPath\"
strDB = strPath & "MyFile.mde"
' Create new instance of Microsoft Access.
Set appAccess = _
CreateObject("Access.Application")
' Open database in Microsoft Access window.
appAccess.OpenCurrentDatabase strDB
'Closes Main Form database'
Application.Quit
End Sub
Is there any way to set it up to always open each application maximized with
the switchboard form in the screen middle? I tried setting an AutoExec
macro to each database that maximized it, but it didn't work. Thanks in
advance!
Bill
access the various access databases we use in our group. The "Main Form"
database opens Access full screen with the form opening up in the screen
middle. When I click on one of the buttons, Access is opened in a smaller
window to the left that I continually have to "Maximize". I then also need
to move the switchboard form of each program to the middle as well.
Here is a sample of the code I have assigned to one of the buttons.
Private Sub cmdMyButton1_Click()
' Initialize string to database path.
Const strPath = "H:\MyPath\"
strDB = strPath & "MyFile.mde"
' Create new instance of Microsoft Access.
Set appAccess = _
CreateObject("Access.Application")
' Open database in Microsoft Access window.
appAccess.OpenCurrentDatabase strDB
'Closes Main Form database'
Application.Quit
End Sub
Is there any way to set it up to always open each application maximized with
the switchboard form in the screen middle? I tried setting an AutoExec
macro to each database that maximized it, but it didn't work. Thanks in
advance!
Bill