Error Visual Basic: ! Compile Error. Can't Find Project Or Library
Hi all,When running a program I made in VB under Windows XP i'm getting thefollowing error: ! Compile error. Can't find project or library. (see alsohttp://home.kabelfoon.nl/~hspies/2.jpg )See the code where it stucks: http://home.kabelfoon.nl/~hspies/1.jpgUbder Windows 98 this error does not occur. Who knows what I do wrong, I'vetried a lot but the error keeps coming in Win XP. Thanks.John
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Compile Error Can't Find Project Or Library
I was able to run this project successfully in my office but its giving problems when I run this at my home.I have VB 6 Enterprise edition but no service pack i think.And when I run, it says,
Compile error:
Can't find Project or Library
And when I click "OK" in another References window, the following are displayed with checkbox enabled,
Visual Basic for applications
Visual Basic runtime objects and Procedures
Visual Basic objects and procedures
OLE Automation
Missing: Crystal Report & ActiveX Designer Runtime Library
Missing: Crystal Report & ActiveX Designer Design time library(Internal)
Missing: Microsoft ActiveX Data objects 2.7 Library
Since a part of this project uses reports i guess that "Crystal Report" error is occuring i guess.
Also I dont have MS Access installed but after installing Microsoft office 2000 will the above problems be solved or should I need to download any other things? Please help me.Thanks.
Compile Error : Can't Find Project Or Library.
I really need some help with this one.
I developed a workbook with various macros. I've suddenly started getting this error "Can't find project or library" when an undeclared error is encountered. I don't have "Require variable declaration" checked under tools -> options. Does anyone have any idea why I'm suddenly getting this error?
The only change I'm aware of- I'm now accessing the workbook through a link on an intranet.
Thank you for any help.
Compile Error: Cannot Find Project Or Library
This occurs with "chr(0)" highlighted in my code.
I've just gotten a new machine and installed VB6 on it and brought over my projects.
Can anyone tell me what "project or library" VB6 wants in order to compile projects with the "chr()" function?
Thanks.
Compile Error. Can't Find Project Or Library
G'day guys,
I've written an app and have tested it in several environments (XP, 2000 and 98) - saved as Excel 97-2002 & 5.0/95. All looked good until I shipped it to a potential client. He gets back to me saying that he's getting the lovely "Compile Error. Can't find project or library" situ.
No probs, suss out that it's either FM20.DLL (MS Forms) or COMDLG32.OCX (MS Common Dialog) not getting loaded.
Added code to 'make-it-take-it' along the lines of:
ThisWorkbook.VBProject.References.AddFromFile "c:winntSystem32comdlg32.OCX"
having determined that he is on Win2K & Office2K. Still no go. The frustration is that all the time he is having this problem, I'm sitting on a W2K, O2K machine at Uni with all working fine.
It seems to buck at such mundanes as Left$ or UCase$ - even after it has indicated that the reference is available. Am I being anal in using the "$" and is that possibly causing the hassles or is it Excel being a pain?
BTW he took it home and it worked on his XP machine just fine...
Compile Error: Cannot Find Project Or Library
while compiling whole application in vb6.0 iam getting this error as
cannot find project or library
highlighting the Date which i used in function EncodeDate(Date)
which reference i have to add to solve this ...please help me
Compile Error: Can't Find Project Or Library
Hi,
I have an app from an SDK that fails here:
Code:
Private Sub Command1_Click()
Dim PassMgr As VtPassportManager
I'm not sure what to do with it. I have a collection of five VBScript Script Files that I'm not sure need setting up somewhere!?
Hope someone can help.
Simon
Compile Error - Can't Find Project Or Library
Hi all,
My visual basic give me a "Compile Error - Can't find project or library." The error occurs where "Lcase" and "Chr" is being called for example. please advise me as to how to fix it. Ur help woul be greatly appreciated
Compile Error - Can't Find Project Or Library
I'm getting a compile error as follows - "can't find project or library". Then it references:
C:Program FilesCommon FilesSystemadomsado25.tlb.
But, when I browse to that location the msado.tlb is there. I've downloaded MDAC 2.5 sp 3 from MSDN and tried reinstall it, but Windows won't let me because it says it is already installed. I could uninstall and reinstall it, but I don't think it will do any good.
Can someone please help?
Compile Error Can't Find Project Or Library
I was able to run this project successfully in my office but its giving problems when I run this at my home.I have VB 6 Enterprise edition but no service pack i think.And when I run, it says,
Compile error:
Can't find Project or Library
And when I click "OK" in another References window, the following are displayed with checkbox enabled,
Visual Basic for applications
Visual Basic runtime objects and Procedures
Visual Basic objects and procedures
OLE Automation
Missing: Crystal Report & ActiveX Designer Runtime Library
Missing: Crystal Report & ActiveX Designer Design time library(Internal)
Missing: Microsoft ActiveX Data objects 2.7 Library
Since a part of this project uses reports i guess that "Crystal Report" error is occuring i guess.
Also I dont have MS Access installed but after installing Microsoft office 2000 will the above problems be solved or should I need to download any other things? Please help me.Thanks.
Compile Error: Can't Find Project Or Library
When i start some downloaded projects from the internet i get a error message:
Compile Error: Can't find project or library
after this message the References-frame apear. I understand the logic of it, BUT how i can know WHICH lib is missing.
Example:
Private WithEvents connConnection As ADODB.Connection
How i know which lib this is?
Anybody got a idea to find for other libs the correct reference?
Compile Error : Can't Find Project Or Library
I have a bit of a problem. I am new to Access 2000 programming. I keep getting this error from a Access 97 application. The code is as follows:
Public Function Init()
' Connect to SQL Server
Dim dbs As Database, qdf As QueryDef, rst As Recordset
The line highlighted by this error is the dim part. Do I have to include libraries or something... Please help!!!!
Compile Error: Can't Find Project Or Library
Compile error: Can't find project or library
I get the above error when I try to execute the following line on my XP machine, but I don't get the error when I execute the line on my 2000 and 98 machine.
tt = Format(Date, "short date")
Thanks in advance for any help!
ddutke
Compile Error: Can't Find Project Or Library
Hello there, I was wondering if anyone else has had problems with VB5.0 after installing Windows2000? When I run the app through code I get the above error and it highlights either "Left$" or "Format$" in the code. I have checked all the dll and ocx files and they match with the versions I was running previously. Is this a Win2K problem or am I missing something? Thanks for your help,
Scott
P.S. I'm also having trouble with the crystl32.ocx but I'm not convinced the problems are related.
Compile Error Problem: Cant Find Project Or Library
I have an EXCEL project with a few embedded objects such as a rich text box and labels. The macros fun fine on my machine but not on others.
When it fails, it gives the message "Compile Error Problem: Can't find project or library"
The weird thing is that it fails on the most innocous stuff like the "Date" function, assigning a character to an variable (a=chr(34)), etc
It appears that when moving the EXCEL project to another machine, none of this commands work and only in the spreadsheet.
Andy ideas would greatly be appreciated.
Thnx
Dino
Help Needed -> Compile Error: Can't Find Project Or Library!
Hi
I have a problem which I can't seem to resolve, I get an error message "Compile error: can't find project or library!" The problem occurred when I installed Access run-time 2000 on one of the user's computers, I also logged myself into that computer, now it seems to have corrupted all my VBA codes and the inbuilt VBA codes like the one below I have attached a print screen of the error and highlighted the place where Access indicate the error... Can anyone help me?
Code:
Option Compare Database
Option Explicit
Sub Form_Current()
Dim ParentDocName As String
On Error Resume Next
ParentDocName = Me.Parent.Name
If Err <> 0 Then
GoTo Form_Current_Exit
Else
On Error GoTo Form_Current_Err
Me.Parent![Product Subform].Requery
End If
Form_Current_Exit:
Exit Sub
Form_Current_Err:
MsgBox Error$
Resume Form_Current_Exit
End Sub
Visual Basic Project Not Compiling Now? Can't Find Library
Hey folks. My Visual Basic project was working fine until this morning when I compiled it stopped at this code . . .
Text1.SelAlignment = rtfLeft
specifically rtfLeft, and said "Compile error: Can't Find project or library"
Can anyone offer help for this???
Thanks a ton
Carmen
Ryerson University
Toronto
Can't Find Project Or Library Error
i reloaded my system and reloaded vb6 and when i tried to open a past project that i developed in my old system, it gives me an error on things like the Ucase property. the error says project or library no found.
i looked in my object browser and it is there and also if i make a new project from scratch it will not give me the error, only with the past projects.
Cant Find Project Or Library Error
hi all,
i developed a project in my home pc. i copied to office pc and when it is runing it is showing error "cant find project or library" and the cursor is pointing to Ltrim() function. what should be the error here. how can i go ahead with this
saj
Error: Can't Find Project Or Library
I am writing a simple program with ado, datalist, and datagrid connected to an Access 2000 db. Just lately for no reason what so ever, I get the error: " compile error: Can't find project or library" and when I go to references it says that MS ActiveX Data Objects 2.0 is missing. This just started happening on every machine I try to run it on. What would cause this?
Can't Find Project Or Library Error
I keep getting this error message when compiling a class module that refers to the SmartmenuXP object. The catch is that I have it referenced in my project and registered it as a control and the dll is also registered. Does anyone have any suggestions?
Thanks.
MEH
Error Msg: Can't Find Project Or Library?
I have the following line in my VB application for Excel (XP):
ans = Messagebox('some text')
This runs fine on XP but on office 2000, I get the error message:
'Can't find Project or Library'
I'm a beginner with VB, so can anyone shed any light for me.
Grateful of any help,
Martin
VB Error: Can't Find Project Or Library
Hi, All,
I made a automation add-in for MS Excel.
If I calculate a cell calling a function from the COM by return, it generates a VB error:
Can't find project or library.
However, it works fine if I calculate the spreadsheet containing functions from the COM dll by F9.
Furthermore, not all the functions in the dll have this problem. Not all the computers have this problem, either.
I checked the VBA editor, there is no missing reference.
Does any one have any idea what is going on?
Thanks a lot!
Solver - Can't Find Project Or Library Error
I made a macro in an excel worksheet that runs solver on a variable data range for the user. I'm on an NT machine with Excel 2002 and it works fine. I e-mailed it to a coworker who has Excel '97 and he gets a "Compile Error: Can't find Project or library". Another coworker with Excel 2002 can run the macro fine.
I tried saving the file as an Excel '97 and Excel '95 file, but that didn't work. Then I went into my coworkers PC with Excel '97, opened the VBA window in excel, went to Tools -> References and the solver box is checked except it says "MISSING: Solver". We went through the entire add in process to add in solver,but for some reason the "MISSING:Solver" box never changes.
This was supposed to be e-mailed out to 60 district managers with various versions of excel, so I'd like to get the problem fixed. Does anyone have any idea what's going on or how to fix it? I can give you a copy of my macro if that would help. Thanks
ERROR MSG "Compile Error Project Or Library"
Im updating a program a buddy did and when I run the script I receive an error that says "Compile error Project or Library" and the error points me to the trim and format function... does anybody knows how to resolve this issue?, do I have to install a patch or something?.. please advise
PAT
Can't Find Project Or Library Error From Left Function
I'm having a "Can't find Project or Library" error I haven't seen answered elsewhere. It results from the Left function. I'm using VBA for macros in Excel in Office XP. When I use the LEFT(string, number of characters) function in a macro in a new workbook, it works fine. However when I use it in a project I've been working on for several months I get the error "can't find project or library". This macro used to work fine on my machine, but not on other computers at work. Now that I've recently wiped the hard drive and reinstalled Office XP, it is not working on my machine as well.
any idea why this would be happening?? I haven't created a conflicting variable or function that I can find.
Below is an example of a macro that works on a new workbook, but not on my existing one.
Sub mystring()
Dim mystring As String
mystring = Left("Chocolate", 4)
MsgBox (mystring)
End Sub
Visual Basic 6.0 Compile Error.
I've already posted a message related with this topic but this one has an attachment wich contain the whole elements; that mean Form, Error Message and Visual Basic Code.
Thanks again in advance.
Visual Basic 6.0 Compile Error
Hi, every body.
I'm using an ADO control on a program and when I try to write down code for the event "ObjectName_WillMove" Visual Basic return a compile error which says:
Compile Error:
Procedure declaration does not match description of event or procedure having the same name.
How could I solve this ?. Thanks in advance.
Cant' Find Project Or Library Error With Code From Albright DSS Book CD - Ideas?
Hallo,
I found a nice example at http://www.kelley.iu.edu/albrightbooks/Downloads/VBA2e/StockQuery.xls - it is from Chris Albright, VBA for Modelers
but it does not work on my excel
i also tried in our citrix enviroment but did not work either. it says "Cant' find project or library" and marks Date ...i checked the references
but they seemed to be fine.
any other ideas or maybe what to tick?!
greetings
I Need Help Finding Missing Reference?? Compile Error: "Cannot Find Project Or Librar
Hi Guys,
I have moved my project to a new stand alone PC, I installed VB6 and the service packs I use as I usuall have done in the past.
But when I try to run my project its erroring out on a form that has a web browser and toolbar.
The error I get says
Compile Error: "Cannot find project or library"
Once I click ok at the error message the reference panel opens and is wanting me to make reference to this missing file I guess??
In my project the program stops on this line
Code:
Private Sub tbToolBar_ButtonClick(ByVal Button As Button
Can anyone suggest what file VB is looking for and will it be on my VB6 Discs?
Thanks in advance to anyone who can help me here.
Regards as ever
C
Error: "Can't Find Project Or Library"
Hello,
I am a beginner. I have the following vba in an excel spreadsheet. I thought this worked at one point, but coming back to it after some time, it is not working now; I get the "Can't find project or library" error message. Along with the error message, the "Response" word is highlighted. This macro is assigned to a drop down box.
Probably simple, but I have spent some time playing with it and cannot get it to work.
Appreciate any comments ~
Thanks!
Sub TESTOptionsBox()
If Range("Z6") = "2" Then
Range("Z6") = "1"
Range("B100").Select
ActiveWindow.SmallScroll Down:=-100
End If
If Range("Z6") = "3" Then
Range("Z6").Select
ActiveCell.Formula = "1"
Range("B100").Select
ActiveWindow.SmallScroll Down:=-100
ActiveWorkbook.Save
End If
If Range("Z6") = "4" Then
Response = MsgBox(Prompt:="Do you wish to print this page?", _
Title:=" Program1", _
Buttons:=vbYesNo + vbQuestion)
If Response = vbYes Then
ActiveWindow.SelectedSheets.PrintOut Copies:=1
Range("Z6").Select
ActiveCell.Formula = "=1"
Range("B100").Select
ActiveWindow.SmallScroll Down:=-100
Else: Range("Z6").Select
ActiveCell.Formula = "=1"
Range("B100").Select
ActiveWindow.SmallScroll Down:=-100
End If
End If
End Sub
Chr(13) Cause "Can't Find Project Or Library" Error
I have a Micro for Excel. I used Chr(13) + Chr(10) to move a displayied text to next line. I got Compile error: Can't find project or Library". It works fine if I change Chr(13) + Chr(10) to vbCrLf. Do you know the reason? Thanks.
Compile Error, Library Reference
I am trying to support a legacy application written in VB5. Since I can't find a VB5 install, I decided to use VB6 on XP Pro. While trying to compile the code, I get a "Compile Error" on some string functions (Space$, Left$, etc), and a dialog box pops up about project or library issue. Using F2, I find that those commands are part of VBA6.dll which I have installed.
What do I need to do get around these Reference library issues? Thanks in advance.
Cheers,
Edward
Find All Forms In My Visual Basic Project
Hi,
I have many forms in my visual basic 6.0 project, I want to print all the form names included in my project, can somebody help me?
my form names are stored as string variables, is there a way to convert the same to objects so that I can open the forms by clicking
Library Or Project Error
Hey everyone,
i recently had to load visual basic from a network drive.It wasn't on my computer and i have no cd-rom either so i just copied the vb98 folder from the visual studio folder on a network drive and pasted it into my own drive.Now,the problem is that when i run my programs,it says it cannot find the project or libraries.For example,i have a program that uses the string function 'right',and the program does not recognise this.What's going on?I have all the references and components added in so i figure it's something to do with not having run the setup,i just threw the whole folder into my drive.I could run the install for the whole visual studio but i haven't enough disk space.Any suggestions greatly appreciated.
paul.
Urgent: Getting Error When Compile The VB6 Project On Different PC?
Hi,
When execute the statement like:
.Open strConPath & "Test.mdb", "Admin", "", adConnectAsync
I got the error saying "Compile error, can't find project or library", but the same source can compile on the other machine without any problem,
I compare the references/components list and it is the same, except the machine that I'm trying to compile on is updated to VB6 SP6.
Also, the one that I'm getting error is WINXP Pro, the one that compiled OK is Win2000 Pro.
Any idea how to fix it or find out exactly what cause the error?
Thanks a lot !
Visual Basic Runtime Error "Error Saving Document
Dear all,
I am saving a document from vb. While saving I get this error. This error occurs only when I run the exe file. This problem doesnt occur while developing the project.
There is no problem with the path. What else may be the problem?
How to rectify this error " Error saving Document" in visual basic 6.0
Pls Help, this is very urgent.
Thanks to all.
Rgds,
Visha
Compile Error While Saving VB6 Project To Disk From IDE
I recently took a number of active X DLL projects for a VB6 project group and merged their various classes and forms into the main exe project that was using them.
Now Im running with full compile to find all the places where there is an error that was referencing the external DLL and changing the code to reference the internal class instead.
It was all going fine until I tried to save the project. I got a compile error, in fact I got the same error as I got when I clicked run with full compile.
I thought that was strange so I fixed the error and clicked save again. The IDE opened a file Ive not even had a chance to work with yet and said I had a compile error User defined type not defined
I know that type is not defined, I need to refractor it to its new name. So I fixed that one as well and clicked save, and got another user defined type not defined error.
So I tried to close the app and it wont close.
I ended the process to close the app.
Now ever time I open the project and start trying to fix all the references and then save I get the same problem!
Is the IDE telling me I cant save the project until every error is fixed? (there are hundreds)
Any advice?
This question also posted at: http://www.experts-exchange.com/Programming/Languages/Visual_Basic/Q_22737403.html
Mid$() Error:CAN'T FIND THE OBJECT OR LIBRARY!
I don't know why this error occured.
If I checked out the OLE AUTOMATION in Project/reference...
That'll be ok,but other function couldn't work without the ole automation.
I wonder why?
Thanks for any suggestions.
Can Not Find Object Or Library Error... After I Reinstalled VB
I am getting a Error Message when I try to run a part of my program that makes an e-mail and sends it. It tells me that there is a "Compile Error, Can not find Object or Library" I had this working fine tell I needed to re-install VB due to a bug with datareports. But now that I got the datareports running this happened... I know I need to reference the Microsoft Outlook 10 and I did but I still get an error. Is there something else I need to reference?
My Code:
Dim objOutlook As Object
Dim objItem As MailItem
Dim x As Integer
Set objOutlook = CreateObject("Outlook.Application") ' create olMailItem
Set objItem = objOutlook.CreateItem(olMailItem)
With objItem
.Subject = "Wheaton Meat Sale Items: " + Text1.Text
.To = "surridge@hotmail.com"
.CC = "wheatonmeat@ameritech.net"
.Body = "Wheaton Meat Sale Items: (" + Text1.Text + ")"
.Body = .Body + " "
For x = 0 To 6
If Text(x) > "" Then
.Body = .Body + " " + Text(x).Text + " " + Price(x).Text
End If
Next x
.Body = .Body + " "
.Body = .Body + "Check out our Website at: http://www.wheatonmeat.com"
.Send
End With
Set objItem = Nothing
Set objOutlook = Nothing
MS Access Error Can Find Object Library
I have written a module in MS Access 2000 Using VBA.
I have used function like Left().It is giving this error on the function on different machine.
I get error (cant find object library). Please help.
Edited by - MP2222 on 3/18/2004 12:23:36 AM
Microsoft Visual C++ Library Runtime Error In VB
I am using VB6 SP5 with Access 2000. I am using ADO to retrieve data from the database. I have noticed that when I press F5 and run the program without stopping or debugging it , it runs fine. But if I add a breakpoint and debug the program and then start it (F5 ) again or end it it gives the error:
Microsoft Visual C++ Runtime Library
Runtime Error! Program C:Program FilesMicrosft Visual StudioVB98VB6.exe
The application has caused the program to be terminated in an unexpected way.Please contact the application support team.
Then the application shuts down and after that it starts giving this error everytime I try to run the program.
I am using the following code to open the connection :
gCon.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source= " & fstrDBName
gCon.Open
I am also compacting the database using the JRO object.
I have used recordset and command objects at module level and I am closing the recordset objects inside the module only.
It seems like something is not being cleared up from the memory...I don't know what??
Experts, Can you please suggest something!!!
Thanks in advance!!
OPENING VISUAL BASIC 6.0 ERROR, DAO350.DLL, "Unexpected Error; Quitting"
Hi,
I could really use some help. I am not the most knowledgable and would appreciate any guidance... I did a web search already at some sites including Microsoft, but I have not found a soultion yet.
Problem: CANNOT OPEN VISUAL BASIC 6.0; Says "Unexpected error; quitting"
Machine/Software:
OS: XP Media Center (although system info says XP Professional 5.1.2600 Service Pack2 Build 2600)
PC: Acer AspireE36
SW:Microsoft Visual Studio 6.0 Enterprise Edition
History:
1. Could not open visual basic 6.0. I got the an error that the DAO350.DLL could not be found.
2. So following some suggestions from the web:
a) Renamed old DAO350.DLL as DAO350.DLLOLD
b) I took this file from Visual Studio Disk 1 and copied it into the
C:Program FilesCommon FilesMicrosoft SharedDAO
c) Regsvr32 "C:Program FilesCommon FilesMicrosoft SharedDAODAO350.DLL"
d) Then I got a successful message that it registered
e) It did not work. When I tried to open the visual basic 6.0 now I get:
"Unexpected error; quitting" message.
WHAT DO I DO PLEASE?
I even loaded the component checker 2.0 as suggest via microsoft website to look up the Microsoft Data Access Components (MDAC).
(see Article ID: 304230 and 301202 on http://support.microsoft.com/kb/304230 and htpp://support.microsoft.com/default.aspx?kbid=301202))
It says MDAC 2.8 SP1 ON WINDOWS XP SP2. I am not sure what this MDAC does for me, but I looked at it anyways.
|