If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
How to configure the "AutoCenter" and "Autp Resize" when form opens...
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 **** -- HTH Van T. Dinh MVP (Access) "Paul" wrote in message ... 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 |
Thread Tools | |
Display Modes | |
|
|