When using date function, get Err: Can't find project or library

J

Jeffrey Deneys

I am trying to use the date function in VBA. Example:

Private Sub Txt1_AfterUpdate (Cancel As Integer)
Me.Txt2 = Date
End Sub


When combiled, I get an error screen stating that it can't
find project of library. When "ok" is clicked the
references dialog box appears; however, I have no idea as
to which reference should be checked in order for the date
function to work.

I also tried typing "print date()" in the immediate window
with the same results. Can anyone assist me with this
problem? Thanks in advance...

Jeff
 
J

John Vinson

When combiled, I get an error screen stating that it can't
find project of library. When "ok" is clicked the
references dialog box appears; however, I have no idea as
to which reference should be checked in order for the date
function to work.

If any of the references are marked MISSING, all of the libraries will
be messed up. Uncheck the MISSING reference; if it's a required one,
recheck it, close and open Access. If none is marked MISSING, check
any other reference (shouldn't matter which); close and open Access;
uncheck the new one, close and open Access again to relink the
references.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top