123help1234
Programmer
Here is the code I'm using to connect to an Access 2000 database:
dim cn as adodb.connection
set cn = new adodb.connection
cn.open "Provider=Mircrosoft.Jet.OLEDB.4.0; Data Source=" & sDbPath & ";"
I've used it on all sorts of other projects with no problem. I shipped a VB6 program to a customer and when it gets to the cn.open line, they get an error:
Method '~' of Object '~' failed
I'm assuming this has something to do with MDAC/JET being installed incorrectly, but I can't figure out what to do. I'm using the same installer that has been used on hundreds of other computers without a problem. I tried having them download the MDAC2.6 Sp2 refresh and JET 4.0 SP8 files from the MS website and install them manually and it didn't help. I tried to have them download MDAC 2.8 as a last resort, but it wouldn't install on an XP machine. I also had them use regsvr32 on msado15.dll, dao350.dll, and dao360.dll after reading a newsgroup post that suggested that may help.
They've tried it on 4 different machines at their office. Two work, two don't. They all have different operating systems and various versions of Office installed.
Can anyone thing of something I can try?
Thanks
dim cn as adodb.connection
set cn = new adodb.connection
cn.open "Provider=Mircrosoft.Jet.OLEDB.4.0; Data Source=" & sDbPath & ";"
I've used it on all sorts of other projects with no problem. I shipped a VB6 program to a customer and when it gets to the cn.open line, they get an error:
Method '~' of Object '~' failed
I'm assuming this has something to do with MDAC/JET being installed incorrectly, but I can't figure out what to do. I'm using the same installer that has been used on hundreds of other computers without a problem. I tried having them download the MDAC2.6 Sp2 refresh and JET 4.0 SP8 files from the MS website and install them manually and it didn't help. I tried to have them download MDAC 2.8 as a last resort, but it wouldn't install on an XP machine. I also had them use regsvr32 on msado15.dll, dao350.dll, and dao360.dll after reading a newsgroup post that suggested that may help.
They've tried it on 4 different machines at their office. Two work, two don't. They all have different operating systems and various versions of Office installed.
Can anyone thing of something I can try?
Thanks