Detecting Access version from VBA

Linus_99

Board Regular
Joined
Aug 28, 2002
Messages
145
Hi,

I'm building an application that needs to run on Access 2002 and Access 2000, and I need to detect from VBA which version is running.

I used strVer=Application.Version in 2002 and it works fine (returns 10.0).

However, this does not appear work in 2000.

Application.Currentdb.Version and Application.Dbengine.Version give me the same versions for 2002 and 2000 so they can't be used to sense the difference.

Can anyone suggest a way that runs in both 2002 and 2000, and returns different version numbers ?

Any help would be appreciated.
Linus
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Forum statistics

Threads
1,221,543
Messages
6,160,421
Members
451,644
Latest member
hglymph

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top