472,354 Members | 2,174 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,354 software developers and data experts.

How to determine Access version programatically?

Br
We're using an Access2000 ADP with an SQL2000 back-end. Because SQL2000
was released after Access2000 you need to be running Access2000 SP1 (2
or 3) for it to work properly.

Is there an easy way for the ADP to determine programatically wether the
correct service pack is installed (or if they are using a newer version
such as 2002/2003)?

Ta.

Br@dley
Nov 13 '05 #1
4 7018
On Fri, 18 Mar 2005 00:43:45 GMT, "Br@d!ey" <br@d.nowhere.com> wrote:

Check this out:
CurrentProject.Properties("AccessVersion")
CurrentProject.Properties("Build")

-Tom.

We're using an Access2000 ADP with an SQL2000 back-end. Because SQL2000
was released after Access2000 you need to be running Access2000 SP1 (2
or 3) for it to work properly.

Is there an easy way for the ADP to determine programatically wether the
correct service pack is installed (or if they are using a newer version
such as 2002/2003)?

Ta.

Br@dley


Nov 13 '05 #2
Br
Tom van Stiphout wrote:
On Fri, 18 Mar 2005 00:43:45 GMT, "Br@d!ey" <br@d.nowhere.com> wrote:

Check this out:
CurrentProject.Properties("AccessVersion")
Returns "08.50" on an "Access 2000 (9.0.0.6620) SP3" machine?
CurrentProject.Properties("Build")
Returns "6620" which is a little more helpful. I need the full version
as users could be using Access 2000/2002/2003.

Thanks Tom

I ended up using some code from
http://www.mvps.org/access/api/api0065.htm

Since different installations can actually have slightly different
version numbers I used a range to determine which version & service pack
it is. It seems to work ok even though it's a bit "clunky".

Note: The version number displayed in Access 2000 is actually the
version of the file MSO9.DLL. My code checks the version on MSACCESS.EXE
as this is contant across all Access versions. The version on this file
however is slightly different.

eg.

Function GetAccessEXEVersion() As String
On Error Resume Next
Dim AccessVer As String, AccessVerDesc As String
AccessVer = fGetProductVersion(Application.SysCmd(acSysCmdAcce ssDir) &
"msaccess.exe")
Select Case AccessVer
Case "9.0.0.0000" To "9.0.0.2999": AccessVerDesc = "Microsoft Access
2000 (" & AccessVer & ")"
Case "9.0.0.3000" To "9.0.0.3999": AccessVerDesc = "Microsoft Access
2000 (" & AccessVer & ") SP1"
Case "9.0.0.4000" To "9.0.0.4999": AccessVerDesc = "Microsoft Access
2000 (" & AccessVer & ") SP2"
Case "9.0.0.6000" To "9.0.0.6999": AccessVerDesc = "Microsoft Access
2000 (" & AccessVer & ") SP3"
Case "10.0.2000.0" To "10.0.2999.9": AccessVerDesc = "Microsoft
Access 2002 (" & AccessVer & ")"
Case "10.0.3000.0" To "10.0.3999.9": AccessVerDesc = "Microsoft
Access 2002 (" & AccessVer & ") SP1"
Case "10.0.4000.0" To "10.0.4999.9": AccessVerDesc = "Microsoft
Access 2002 (" & AccessVer & ") SP2"
Case "11.0.0000.0" To "11.0.59999.9999": AccessVerDesc = "Microsoft
Access 2003 (" & AccessVer & ")"
Case "11.0.6000.0" To "11.0.69999.9999": AccessVerDesc = "Microsoft
Access 2003 (" & AccessVer & ") SP1"
Case Else: AccessVerDesc = ""
End Select
If SysCmd(acSysCmdRuntime) Then AccessVerDesc = AccessVerDesc & "
Run-time"
GetAccessEXEVersion = AccessVerDesc
End Function

Br@dley

-Tom.

We're using an Access2000 ADP with an SQL2000 back-end. Because
SQL2000 was released after Access2000 you need to be running
Access2000 SP1 (2 or 3) for it to work properly.

Is there an easy way for the ADP to determine programatically wether
the correct service pack is installed (or if they are using a newer
version such as 2002/2003)?

Ta.

Br@dley

Nov 13 '05 #3
"Br@d!ey" <br@d.nowhere.com> wrote in news:Bfs_d.2166$C7.2079@news-
server.bigpond.net.au:
Case "10.0.4000.0" To "10.0.4999.9": AccessVerDesc = "Microsoft
Access 2002 (" & AccessVer & ") SP2"
Case "11.0.0000.0" To "11.0.59999.9999": AccessVerDesc = "Microsoft
Access 2003 (" & AccessVer & ")"


Access 2002 has an SP3.

--
Lyle
--
Nov 13 '05 #4
Br
Lyle Fairfield wrote:
"Br@d!ey" <br@d.nowhere.com> wrote in news:Bfs_d.2166$C7.2079@news-
server.bigpond.net.au:
Case "10.0.4000.0" To "10.0.4999.9": AccessVerDesc = "Microsoft
Access 2002 (" & AccessVer & ") SP2"
Case "11.0.0000.0" To "11.0.59999.9999": AccessVerDesc =
"Microsoft Access 2003 (" & AccessVer & ")"


Access 2002 has an SP3.


Ta. None of the people we deal with use 2002 anyway:)

Br@dley
Nov 13 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Yasutaka Ito | last post by:
Hi, Is there a way to determine which version of .NET Framework any given assembly is built with? thanks! -Yasutaka
6
by: seansan | last post by:
Hi, Does anyone know how to read the full access version number in visual basic? I need to know if the current program instance is SR-1 or SP-3, etc... I currently use: DB_DAO =...
1
by: Dana King | last post by:
Hi, I was wondering if anyone knows how to programmatically determine what version an Access Database is in? Thanks in advance...
1
by: Tarren | last post by:
I have to write an auto patcher for all of the client pcs, but some are running different versions of office. How can I determine which version of Microsoft Office is installed? Do I get it...
3
by: balakrishnan.dinesh | last post by:
hi frnds How to determine the version of the MSXML installed on a computer and How to determine the version of the MSXML used by Internet Explorer through javascript code. Can anyone say me ,...
8
by: G .Net | last post by:
Hi How can I find which version of Access is installed on a computer from within a vb.net application? G
3
dima69
by: dima69 | last post by:
Hi all. I use a following code to run a procedure in another application: Dim App as Access.Application set App = CreateObject("C:\MyApp.mde") App.Run "MyProc" ... The problem is that when...
2
by: auditor.software | last post by:
Hi. I need to run a function from another database, using: Dim App as Access.Application Set App = CreateObject("C:\LibDB.mde") App.Run "MyFunc", ... I use Access2K database format, and I...
2
by: mjworks2009 | last post by:
Is there any way VB can detect the current version of ms access ruining in the system, and return a message that will say (YOUR MS ACCESS VERSION IS then the version). thanks a lot for helping...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made but the http to https rule only works for...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. header("Location:".$urlback); Is this the right layout the...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it so the python app could use a http request to get...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.