The specified module could not be found

B

Bubu

When I astart the Access 2000 application, I recives the error message
"The specified module could not be found". If I click the debug button
the VBA code points to

rst.Open strSQL CurrentProject.Connection, adOpenForwardOnly,
adLockReadOnly

In reference I select "Microsoft AvtiveX DataObject 2.1 Library".

Can any one please help.
 
B

Bubu

I did that also. I tried adding ADO 2.1, 2.5, 2.6 and 2.7, but still
same error.
Previously the application was working fine. But from last one or two
weeks it is throwing this error.
 
A

Alex Dybenko

Hi,
Make a stop at this line:

rst.Open strSQL CurrentProject.Connection, adOpenForwardOnly, adLockReadOnly

then open debug window and type
?CurrentProject.Connection
if this one produce error - then try to use
CurrentProject.ActiveConnection instead

i rememeber i had something similar long ago in Access 2000
 
D

Douglas J Steele

Is that a cut-and-paste of the actual code? You're missing a comma between
strSQL and CurrentProject.Connection
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top