How to configure the "AutoCenter" and "Autp Resize" when form opens...

  • Thread starter Thread starter Paul
  • Start date Start date
P

Paul

I used the following code to open an Access application from another Access
appliaction. The first form to open is configured to "AutoCenter" and
"AutoResize" equal to "Yes". Somehow when the form opened, it does not have
the AutoCenter and AutoResize property. How to add to the following code to
include these properties.


Dim accApp As New Access.Application
accApp.OpenCurrentDatabase ("C:\App.mdb")
accApp.Visible = True
 
Try:

****Tested in A2K2****
Private Sub Command0_Click()
Dim accApp As Access.Application

Set accApp = New Access.Application
accApp.Visible = True
accApp.OpenCurrentDatabase ("D:\AccessTests\A2K2_MyTest\Test01.mdb")
Set accApp = Nothing

End Sub
****
 
Back
Top