Print Page | Close Window

ExternalDbAutomation.mdb

Printed From: Roger's Access Library
Category: Other Download Libraries
Forum Name: Tejpal, A.D.
Forum Description: A.D. Tejpal's Library
URL: www.rogersaccesslibrary.com/forum/forum_posts.asp?TID=115
Printed Date: 18 Oct 2017 at 5:22am


Topic: ExternalDbAutomation.mdb
Posted By: A.D. Tejpal
Subject: ExternalDbAutomation.mdb
Date Posted: 09 Jul 2008 at 10:43pm
The sample set consists of two mdb files, representing local and external db's 
respectively. Access XP version incorporates programmatic insertion of password 
argument for opening the external db (In earlier versions, password argument is not 
available for OpenCurrentDatabase method). 
 
    So long as both db's are in the same folder, the local db will automatically detect
the path of external db
 
    Clicking the command button captioned "Go To External Db", on switchboard 
form in local db, hides the local access application and results in either of the 
following -
    (a) If external db is not yet open, a new instance of access application is created, 
         in which external db is opened and its switchboard form is displayed.
    (b) If external db is already open, it gets un-hidden and its switchboard form is 
         displayed.
 
In external db, opening of form F_Reports results in loading of all available report 
names (from AllReports collection) in the list box, facilitating print/preview.
 
In external db, clicking the go-back button (or closing the switchboard form) results 
in hiding of external db and un-hiding of local db.
 
Any of the following actions in local db ensures closure of external db (if still open) -
    (a) Click command button for closing external db.
    (b) Close switchboard form of local db.
    (c) click command button for closing local db.

References - DAO 3.6

Download Access XP & 2K: http://www.rogersaccesslibrary.com/forum/uploads/37/ExternalDbAutomation.zip - uploads/37/ExternalDbAutomation.zip



-------------
--

Email: mailto:adtejpal@gmail.com - adtejpal@gmail.com



Print Page | Close Window