When attempting to run (or even just compile) the following code, I get the .Connection object of the CurrentProject highlighted along with a message box saying 'Error in loading dll'.
I've checked my references, and there's nothing highlighted as missing, but I've noticed that when I create a new database, I often get the message 'Object Library not registered' when first creating a new object in the database (Table, Module etc). Is this a case for a reinstallation, or is there another fix (I've tried re-registering some of the dll's but the problem has persisted). Cheers for any help.
Code:
Public Sub Test()
Dim cat As ADOX.Catalog
Set cat = New ADOX.Catalog
cat.ActiveConnection = CurrentProject.Connection
End Sub
I've checked my references, and there's nothing highlighted as missing, but I've noticed that when I create a new database, I often get the message 'Object Library not registered' when first creating a new object in the database (Table, Module etc). Is this a case for a reinstallation, or is there another fix (I've tried re-registering some of the dll's but the problem has persisted). Cheers for any help.