Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / January 2005

Tip: Looking for answers? Try searching our database.

Windows - Activate .mdb

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bret - 28 Jan 2005 00:25 GMT
When I have 2 mdb's open, one is maximized on screen, the other minimized.
How do I, using code have one activate the other so it becomes maximized.

much thanks...
visdev1 - 28 Jan 2005 17:19 GMT
This should give you access to another existing database.

Dim appAccess As Access.Application

Sub DisplayForm()
   Const strConPathToSamples = "C:\TestApp\"

   Dim strDB As String

   ' Initialize string to database path.
   strDB = strConPathToSamples & "db1.mdb"
   ' Create new instance of Microsoft Access.
   Set appAccess = CreateObject("Access.Application")
   ' Open database in Microsoft Access window.
   appAccess.OpenCurrentDatabase strDB
   ' Open Orders form.
   appAccess.DoCmd.OpenForm "Form1"
   appAccess.Visible = True
   appAccess.DoCmd.Maximize
End Sub

> When I have 2 mdb's open, one is maximized on screen, the other minimized.
> How do I, using code have one activate the other so it becomes maximized.
>
> much thanks...
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.