J
Jeff
I'm getting an "ActiveConnection failed" error with the following code and I
don't know why.
Sub ListTbls()
Dim catlg As New ADOX.Catalog
catlg.ActiveConnection = "Provider=Microsoft.Jet.OLEDB.4.0;" _
& "Data Source=C:\Program Files\Microsoft Office\Office10\" _
& "Samples\Northwind.mdb;"
End Sub
I'm using Access 2002, Windows XP Home, and I believe all my ADO references
are set. The .mdb file and path are correct. I tried several variations
with a simpler file and path but I get the same error. The error message
says:
Runtime error '-2147024769 (8007007F)':
Method 'Activeconnection' of object _Catalog failed
I have no other database programs installed other than Access 2002. Any
help is appreciated. Thanks!
Jeff
don't know why.
Sub ListTbls()
Dim catlg As New ADOX.Catalog
catlg.ActiveConnection = "Provider=Microsoft.Jet.OLEDB.4.0;" _
& "Data Source=C:\Program Files\Microsoft Office\Office10\" _
& "Samples\Northwind.mdb;"
End Sub
I'm using Access 2002, Windows XP Home, and I believe all my ADO references
are set. The .mdb file and path are correct. I tried several variations
with a simpler file and path but I get the same error. The error message
says:
Runtime error '-2147024769 (8007007F)':
Method 'Activeconnection' of object _Catalog failed
I have no other database programs installed other than Access 2002. Any
help is appreciated. Thanks!
Jeff