473,796 Members | 2,376 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Compile error: Can't find project or library

2 New Member
Hi, I have this complete Audit database at work that I inherited from someone who left late last year, it has been working fine up until this week. There are report form section that I can select reports by specific topics, but when I select and press that report button, instead of the report opening up, I get the this error message pop up "Compile error: Can't find project or library" and then the Visual BAsic editor opens with code info displayed for the report from I selected. THe windows appear wit the "stLinkCriteria " selected., here is what the code looks like;


Expand|Select|Wrap|Line Numbers
  1. Private Sub Command24_Click()
  2. On Error GoTo Err_BtnAllOutstanding_Click
  3.  
  4.     Dim stDocName As String
  5.  
  6.     stDocName = "frmRptRecomBySection"
  7.     DoCmd.OpenForm stDocName, , , stLinkCriteria
  8.  
  9. Exit_BtnAllOutstanding_Click:
  10.     Exit Sub
  11.  
  12. Err_BtnAllOutstanding_Click:
  13.     MsgBox Err.Description
  14.     Resume Exit_BtnAllOutstanding_Click
  15. End Sub
It nows happens on 3 out of 6 reports which use to work.

Any help or suggestion would be nice.

Cheers
Nekker
Feb 7 '07 #1
4 7592
nico5038
3,080 Recognized Expert Specialist
Try:

Expand|Select|Wrap|Line Numbers
  1. Private Sub Command24_Click()
  2. On Error GoTo Err_BtnAllOutstanding_Click
  3.  
  4.     Dim stDocName As String
  5.  
  6.     stDocName = "frmRptRecomBySection"
  7.     DoCmd.OpenForm stDocName
  8.  
  9. Exit_BtnAllOutstanding_Click:
  10.     Exit Sub
  11.  
  12. Err_BtnAllOutstanding_Click:
  13.     MsgBox Err.Description
  14.     Resume Exit_BtnAllOutstanding_Click
  15. End Sub
  16.  
As there's no Dim for the stLinkCriteria and it's not filled either.
Also check or there's no Dim stLinkCriteria at the top of the code...

Nic;o)
Feb 7 '07 #2
MSeda
159 Recognized Expert New Member
does it happen on all computers, some, or just yours?
sometimes when updates are applied to other programs (Like Outlook) the references Library gets messed up.
usually the line of code that gets highlighted when this happens has absolutely nothing to do with the error.
in the VB editor click tools then references and see if any are labeled MISSING:
uncheck these.

http://support.microsoft.com/kb/283806
Feb 8 '07 #3
nekker64
2 New Member
I would like to thank you both for your assistance with this matter but MSeda hit the nail on the head. He was spot on with his suggestion, it was exactly the problem the article stated. I removed the tick from the missing reference link and it all works again. I think it was due to a recent upgrade from Office Xp to Office 2003. Anyway, your fast responses have helped me from having to re-create a new database from scratch.

Cheers
Nekker
Feb 8 '07 #4
MSeda
159 Recognized Expert New Member
Glad to help.
Feb 8 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
23087
by: Familie Spies | last post by:
Hi all, When running a program I made in VB under Windows XP i'm getting the following error: ! Compile error. Can't find project or library. (see also http://home.kabelfoon.nl/~hspies/2.jpg ) See the code where it stucks: http://home.kabelfoon.nl/~hspies/1.jpg Ubder Windows 98 this error does not occur. Who knows what I do wrong, I've tried a lot but the error keeps coming in Win XP. Thanks.
0
1642
by: Xiaofeng Zhang | last post by:
when I compile my project setting, there are many LINK errors. But when I compile my project under debug setting, everything is OK. How can I deal with it? The errors is followed. Linking... LIBCMT.lib(crt0dat.obj) : error LNK2005: _exit already defined in msvcrt.lib(MSVCR71.dll) LIBCMT.lib(crt0dat.obj) : error LNK2005: __exit already defined in msvcrt.lib(MSVCR71.dll)
2
5745
by: Qiao Yun | last post by:
I used vc++.net (visual studio .net ) to open a project which can work well in vc++6.0. I succeeded in compiling the project in vc++.net in release mode . But when I tried to compile the project in debug mode, the following errors happened: d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xdebug(29): error C2365: 'new' : redefinition; previous definition was a 'member function' d:\Program Files\Microsoft Visual Studio...
6
2861
by: Thomas Connolly | last post by:
I have 2 pages referencing the same codebehind file in my project. Originally the pages referenced separate code behind files. Once I changed the reference to the same file, everything worked fine while the file was in the project directory. When the obsolete file was removed from the project directory, my application will no longer compile. Can someone please help with this issue? Thank in advance, Tom
5
1869
by: TreatmentPlant | last post by:
Very late last night I was working on a project. When I left it - it worked and all was sweet! After a nap I came back to it this morning to find that the project will not compile and I keep getting this error: -----------------Configuration: take2 - Win32 Debug-------------------- Linking... Creating library Debug/take2.lib and object Debug/take2.exp LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
1
7050
by: rave3085 | last post by:
Helo friends, I Had a VB Project in my system which was not done by me! But when i tried to Run that it gave me a message! Compile Error: Can't Find Project Or Library! Immediately after that, the References Box opens automatically showing MISSING:Microsoft DTSPackage Objects Library alomg with all the other references selected!!!
1
2612
by: Bob | last post by:
Hi all, I've created a database at work and have copied it to home but have had some problems when I try to open the main form. The error when I run it is: Compile error: Can't find project or library This error comes up then it highlights the 'date' function in the following line of code:
2
1829
by: wouter | last post by:
Hello, Being a chemical engineering i'm only little acquainted with programming. However I made a made a excel program with macro's using VBA. This program is used a lot in our company. However when going from windows 2000 to windows 2003, it does not work anymore!! When running, it gives the error: Compile error; can't find project or library. Does someone know how to tackle this problem?
1
3772
by: squrel | last post by:
Hello all.. i need a very urgent help here... i have done a project in VB6 and SQLServer 2000 but few days back my pc had to get formatted and i took the back up of my project. i have installed VB again and my project also bt now when i want to run the project i m getting this error : Compile error : can't find project or library i have checked the components and refrences also and everything is thr bt still not opening... plz tel me wht...
0
9679
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10453
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10172
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9050
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6785
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5441
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5573
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4115
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.