Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 337
Default Access Version being used

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Access Version being used


Access databases can only be used with the same version of Access that
there were created in . Access is not forward nor backwards compatible
with different versions. You are using a shell command to open the
database which will use the version of Access that is installed on your
PC and if it doesn't match the version of the Database on the next work
it will not work.

The better method is to connect with the database using the ADO method
which will work across different version of Access. there are plenty of
references on the network on how to do this. He is one article

'VB Tutorials - SQL for Beginners' (http://tinyurl.com/6hulo)


--
joel
------------------------------------------------------------------------
joel's Profile: 229
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=170680

Microsoft Office Help

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 337
Default Access Version being used

I don't understand. We have a Access database created with 97 and it is used
with Access & Excel 2000. 2003 and 2007. as the working macro below shows

"joel" wrote:


Access databases can only be used with the same version of Access that
there were created in . Access is not forward nor backwards compatible
with different versions. You are using a shell command to open the
database which will use the version of Access that is installed on your
PC and if it doesn't match the version of the Database on the next work
it will not work.

The better method is to connect with the database using the ADO method
which will work across different version of Access. there are plenty of
references on the network on how to do this. He is one article

'VB Tutorials - SQL for Beginners' (http://tinyurl.com/6hulo)


--
joel
------------------------------------------------------------------------
joel's Profile: 229
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=170680

Microsoft Office Help

.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I access a previous version of my Excel document? Jo Excel Discussion (Misc queries) 3 March 9th 10 06:29 AM
Sending File From Excel To Domin Web Access Version 7 SEAN DI''''ANNO Excel Programming 0 June 8th 07 09:00 AM
where can I download the trial version of access 2003? daniela guth Excel Programming 2 April 1st 07 03:44 PM
Can I access the previous version of a saved file? JCC Excel Discussion (Misc queries) 10 November 21st 05 08:24 PM
Calling a specific version of Access. Derek Anderson Excel Programming 2 June 17th 05 09:00 PM


All times are GMT +1. The time now is 12:37 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"