Solved

Error Can't find Project or Library ????

Posted on 1999-01-11
3
905 Views
Last Modified: 2008-02-01
Hi
I hav a vb app in VB5
I formatted my harddive and u know did the reinstall thing.
well now when i run my program inside vb it is fine
But if i try to make an Exe file it gives me this error
"Can't find project or Library"

and then it takes me to this line were i am using the mid function
1) TempMinS = CInt(Mid(TempETimeS, 4,2))                                                        
This line is above it and it does not give me the error on left only on mid and right
TempHourE = CInt(Left(EndTime, 2))

Now i went to the object browser and checked which library mid belongs to and it is the VBA5.dll and i have it loaded in my references part of my project

Help
Thanx Craig
0
Comment
Question by:CraigLazar
  • 2
3 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 50 total points
ID: 1455365
Try to add "VBA" before your Mid, Left, Right, ... functions (like vba.mid).

This specifies in which library to look for your functions.


0
 
LVL 4

Author Comment

by:CraigLazar
ID: 1455366
Thanx mate do u know why it started doing that ?

Craig
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 1455367
I never find why, but we often see this problem when we have to reinstall some packages.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question