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

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
 
V

Van T. Dinh

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
****
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top