Compiler error: Can't find project of library.

  • Follow


I am using Access 2003.  I have Visual Basic For Applications as an
Available Reference.  When it gets to "Date" in the code I get a
Compiler error:  Can't find project of library.  Can anyone help?

0
Reply Dick 6/4/2007 7:29:29 PM

Sounds like either a bad reference or a naming clash.

In the code window, choose References on the Tools menu.
Anything marked "MISSING"?
If so, see:
    Solving Problems with Library References
at:
    http://allenbrowne.com/ser-38.html

If not, you have something else named Date, which is a reserved word in VBA 
(and also in SQL.) Find and rename it. If it is a field, you may need to 
rename it in your queries and table as well.

If you have no field with that name, and it is not the name of your form, 
control, or variable, and there is no function or sub with that name, 
perhaps it is the name of the project. The project name shows up on the 
tools menu in the code window, e.g. it would read:
    Date Properties

-- 
Allen Browne - Microsoft MVP.  Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Dick" <rlafran2@travelers.com> wrote in message
news:1180985369.996726.197700@q75g2000hsh.googlegroups.com...
>I am using Access 2003.  I have Visual Basic For Applications as an
> Available Reference.  When it gets to "Date" in the code I get a
> Compiler error:  Can't find project of library.  Can anyone help?
> 

0
Reply Allen 6/5/2007 1:24:35 AM


1 Replies
580 Views

(page loaded in 0.061 seconds)

Similiar Articles:
















7/23/2012 1:23:54 AM


Reply: