PC Review


Reply
Thread Tools Rate Thread

Compiler Error Can't find object or library

 
 
Michael Trombetta
Guest
Posts: n/a
 
      9th Sep 2008
I am trying to convert an Access 97 database to Access 2007. I get the error
message: "Compiler Error Can't find object or library" on the following code.

Err_AddBook_Click:
MsgBox Error$
Resume Exit_AddBook_Click

when the compiler encounters Error$.

Any help would be appreciated.

 
Reply With Quote
 
 
 
 
Dirk Goldgar
Guest
Posts: n/a
 
      9th Sep 2008
"Michael Trombetta" <Michael (E-Mail Removed)> wrote in
message news:6120F815-8343-4E85-8E65-(E-Mail Removed)...
>I am trying to convert an Access 97 database to Access 2007. I get the
>error
> message: "Compiler Error Can't find object or library" on the following
> code.
>
> Err_AddBook_Click:
> MsgBox Error$
> Resume Exit_AddBook_Click
>
> when the compiler encounters Error$.
>
> Any help would be appreciated.



In the VB editor, click Tools -> References..., and look for any marked
MISSING. If there are any, un-check them and, if there's an Access 12 or
Office 12 equivalent, check that one instead. If you un-checked some
references, try recompiling and see if any compile errors are raised. If
not, try running the code again and see if the problem has gone away.

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)

 
Reply With Quote
 
Dirk Goldgar
Guest
Posts: n/a
 
      9th Sep 2008
"Linq Adams via AccessMonster.com" <u28780@uwe> wrote in message
news:89e8afe5421c7@uwe...
> If no references show up as missing, the problem may be with the dollar
> sign
> at he end of Error$. This is a hold over from the early Basic days, and
> while
> in versions up thru v2003 they'll work, I've been seeing reports for a
> while
> of the code failing in v2007.


FWIW, I tested the code in Access 2007, with the dollar sign, and it worked
fine. So while that *may* be it, there must be some other contributing
factor. I'm still inclined to think it's a broken reference.

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
error : can't find object or library Lynn Microsoft Excel Discussion 1 9th Jul 2009 07:57 AM
error : can't find object or library Lynn Microsoft Excel Programming 1 9th Jul 2009 05:17 AM
Microsoft Speech Object Library compiler warnings Kevin S Gallagher Microsoft Dot NET 0 21st May 2008 08:39 PM
Compiler error: Can't find project of library. Dick Microsoft Access Reports 1 5th Jun 2007 02:24 AM
Compiler Error Message: BC2017: could not find library Henrik Stidsen Microsoft ASP .NET 0 19th May 2006 10:25 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:00 PM.