borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (How can I specify a control ?)Next Topic (How can I loop through the records of an Access file ?) New Topic New Poll Post Reply
AndreaVB Forum : VB General : "can't find project or library" error
Poster Message
cleopard
Level: Big Cheese

Registered: 02-09-2005
Posts: 28

icon "can't find project or library" error

I just got a new PC at work, getting upgraded from Win2000 to XP, and I just reinstalled MS Visual Basic 6.0.  But when I open up a project, I get the error "Compile error:  Can't find project or library".  At first, I thought it was because I didn't have MS Access installed (the lesser version of MS Office had been installed on the machine, the version without Access), but that wasn't enough.  I found some instructions on the MS site about that error, but the instructions:

1. Open your database.  
2. Press ALT+F11 to switch to the Visual Basic Editor.
3. Open a module in Design view.  
4. On the Tools menu, click References.  
5. Click to clear the check box for the type library or object library marked as MISSING: <referencename>.


don't really make sense, mainly since, at step 4, there is no 'References' choice to click on.  So any help would be greatly appreciated.      

20-11-2006 at 05:09 PM
View Profile Send Email to User Show All Posts | Quote Reply
steve_w
Level: Moderator


Registered: 18-04-2003
Posts: 1156
icon Re: "can't find project or library" error

Hi

Have look at the references in vb after you have opened your project and see if you have a missing reference there.

References for vb is in the project menu item.


Steve

20-11-2006 at 08:53 PM
View Profile Send Email to User Show All Posts | Quote Reply
cleopard
Level: Big Cheese

Registered: 02-09-2005
Posts: 28
icon Re: "can't find project or library" error

After having left this to work on other things, I came back to this problem that I posted a couple of weeks ago.  I hadn't really taken notice of the fact that when I tried to compile on run my project and received the "can't find project or library" error, a window with one of the source code files came up and the declaration line "Public Access As Connection" was highlighted.  I thought I'd mention this and re-post this note and see if this might ring a bell with anyone.  Thank you.

28-11-2006 at 02:13 PM
View Profile Send Email to User Show All Posts | Quote Reply
cleopard
Level: Big Cheese

Registered: 02-09-2005
Posts: 28
icon Re: "can't find project or library" error (found solution)

Well, I found the solution to my problem and it wasn't as big of a deal as I thought it was, had a new version of MDAC and a couple of code modifications were necessary.  Much ado about nothing.    

28-11-2006 at 04:13 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VB General : "can't find project or library" error
Previous Topic (How can I specify a control ?)Next Topic (How can I loop through the records of an Access file ?) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder