A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

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



 
 
Thread Tools Display Modes
  #1  
Old June 8th, 2004, 12:55 PM
Van T. Dinh
external usenet poster
 
Posts: n/a
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:47 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.