Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compile Error: Can't find project or library. Highlights "Mid"

Status
Not open for further replies.

alexbel

Technical User
Jun 27, 2004
77
0
0
US
Hi,

When I try to compile the program, I get the following error:


Compile Error: Can't find project or library.


It highlights the following word in the following line of code:

Code:
strFilter = strFilter & [b]Mid[/b](strFilterIn, intLastPos, intPos - intLastPos) & vbNullChar


As you can see, it highlights the word "Mid." Do you know what library I might be missing?


Thank you
 
Sounds like Visual Basic for Applications could be missing from your References. Open a module or view code in a form then check for 'Missing' references under Tools|References.
 
Hi,

I had that checked already so that was not the problem. I did, however, figure out what the problem was:

I didn't have Microsoft Word Object Library checked and when I checked it, it didn't give me the error anymore.

Thanks for your help anyways.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top