Compile Error:Can't find project or library

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I get this compile error message

OutputFile = "M:\filename here" & "_" & Format(Date, "mmddyyyy")

The word "date" is highlighted, I assume that's where the error is coming
from. When I run this on another PC, it works fine. Why won't it run in my
PC? is there a set up that I should be looking at?
 
I get this compile error message

OutputFile = "M:\filename here" & "_" & Format(Date, "mmddyyyy")

The word "date" is highlighted, I assume that's where the error is coming
from. When I run this on another PC, it works fine. Why won't it run in my
PC? is there a set up that I should be looking at?

This appears to be the very common References bug. Open any
module in design view, or open the VBA editor by typing
Ctrl-G. Select Tools... References from the menu. One of the
..DLL files required by Access will probably be marked
MISSING. Uncheck it, recheck it, close and open Access.

If none are MISSING, check any reference; close and open
Access; then uncheck it again. This will force Access to
relink the libraries.

John W. Vinson [MVP]
 
I believe, changing the variable 'Date' to something that is not a VBA
keyword would help.
 
Back
Top