Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This work only if the version of Access matches the version of Excel. How do
you detect the Access version being used? Private Sub CommandButton5_Click() 'Go to customer database Dim X As String Dim nVer As Long nVer = Val(Application.Version) MainMenu.Hide If nVer = 11 Then X = Shell("C:\Program Files\Microsoft Office\Office11\MSACCESS.EXE \\SERVER3\database\Customers.MDB", 1) Else If nVer = 12 Then X = Shell("c:\Program Files\Microsoft Office\Office12\MSACCESS.EXE \\SERVER3\database\Customers.MDB", 1) Else If nVer = 9 Then X = Shell("E:\Program Files\Microsoft Office\Office\MSACCESS.EXE \\SERVER3\database\Customers.MDB", 1) End If End If End If Application.Goto Reference:="Company" Range("A3").SelectX = Shell("d:\Program Files\Microsoft Office\Office11\MSACCESS.EXE \\SERVER3\database\Customers.MDB", 1) End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I access a previous version of my Excel document? | Excel Discussion (Misc queries) | |||
Sending File From Excel To Domin Web Access Version 7 | Excel Programming | |||
where can I download the trial version of access 2003? | Excel Programming | |||
Can I access the previous version of a saved file? | Excel Discussion (Misc queries) | |||
Calling a specific version of Access. | Excel Programming |