Liam Elliott
July 5th, 2001, 04:15 AM
Hi gurus,
Hopefully this will be a simple one...
I'm trying to create an Access Database object using VBScript.
(I've also tried this from Excel VBA and I have the same problem...)
I have Excel, Access ect (Office 97) correctly installed on my machine.
My call to CreateObject("DAO.DBEngine") fails with "ActiveX component can't create object".
HOWEVER
a call to CreateObject("DAO.DBEngine.36") succeeds (i.e. explicitly stating the version).
Ideally I'd like to just use the latest installed version of Access by not having to
specify the actual version.
Looking in my registry there doesn't appear to be a "DAO.DBEngine" entry with
a "CurVer" key; unlike other of the office suite for example "Excel.Application.8" and
the entry "Excel.Application" whose current version points to "Excel.Application.8"
Is this the standard way that Access gets installed?
If not, how can I alter the way Access gets installed to ensure the "Current Version"
option is there?
Is there some reason that there can't be a "Current version" option?
Many Thanks,
Liam
Hopefully this will be a simple one...
I'm trying to create an Access Database object using VBScript.
(I've also tried this from Excel VBA and I have the same problem...)
I have Excel, Access ect (Office 97) correctly installed on my machine.
My call to CreateObject("DAO.DBEngine") fails with "ActiveX component can't create object".
HOWEVER
a call to CreateObject("DAO.DBEngine.36") succeeds (i.e. explicitly stating the version).
Ideally I'd like to just use the latest installed version of Access by not having to
specify the actual version.
Looking in my registry there doesn't appear to be a "DAO.DBEngine" entry with
a "CurVer" key; unlike other of the office suite for example "Excel.Application.8" and
the entry "Excel.Application" whose current version points to "Excel.Application.8"
Is this the standard way that Access gets installed?
If not, how can I alter the way Access gets installed to ensure the "Current Version"
option is there?
Is there some reason that there can't be a "Current version" option?
Many Thanks,
Liam