Programatically Returning Which Access Version I am using

  • Thread starter Thread starter Mike
  • Start date Start date
M

Mike

Hi

I have an application that works OK under both Access 2002 (OfficeXP) and
the new Access 2002/2003 (Office 2003) but I want to restrict it to be used
only under Access 2002.

How can I pick up the version of Access it being run under ?

Any ideas ?

Thanks

Mike
 
Hi, Mike.

Try:

If (Nz(Application.Version, "") = "10.0") Then
' This is the 2002 version, so do nothing.
ElseIf (Nz(Application.Version, "") = "11.0") Then
Application.Quit ' Quit the applic, 'cuz it's the '03 version.
Else
' Use this for other (future) versions.
End If


HTH.

Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips.

(Please remove ZERO_SPAM from my reply E-mail address, so that a message
will be forwarded to me.)
 
Thanks so much !

'69 Camaro said:
Hi, Mike.

Try:

If (Nz(Application.Version, "") = "10.0") Then
' This is the 2002 version, so do nothing.
ElseIf (Nz(Application.Version, "") = "11.0") Then
Application.Quit ' Quit the applic, 'cuz it's the '03 version.
Else
' Use this for other (future) versions.
End If


HTH.

Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips.

(Please remove ZERO_SPAM from my reply E-mail address, so that a message
will be forwarded to me.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top