[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

02/27/2009 at 09:51AM PST, ID: 24184543 | Points: 500
[x]
Attachment Details

Toggle from one access database to another

Asked by mdbbound in Access Coding/Macros

Tags: Going from one database to another using a button on a form

I used a hyperlink function in one of my forms to go to other forms in Access 2000.  Now we upgraded to Access2003 and the links no longer works.  Here is the code of one of the links

Private Sub Label5_Click()
'Exit Main module and go to Client Reference Tables Management
    Const strCompactorMDB = "C:\GAAP\FRISMClient\FRISMClientRef.mdb"
    Dim strCommandLine
    Dim dbl_D As Double

    strCommandLine = Quote(SysCmd(acSysCmdAccessDir) & _
    "MSACCESS.EXE") & " " & Quote(strCompactorMDB) & _
     " /cmd " & Quote(CurrentDb.Name)
   dbl_D = Shell(strCommandLine, vbNormalFocus)
   Application.Quit acQuitSaveAll ' close the current databasee
End Sub


Also, how do you do this in MS Access 2007
[+][-]02/27/09 11:26 AM, ID: 23758904

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/27/09 11:35 AM, ID: 23758946

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/27/09 01:37 PM, ID: 23759806

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-91 - Hierarchy / EE_QW_3_20080625