Link to home
Start Free TrialLog in
Avatar of michellejohnson
michellejohnson

asked on

Error (3085) with Date() function

I converted my 97 db to 2000.  When checking to make sure all things looked ok, I came across 2 queries that won't run.  They both use the DATE() function in the criteria, because I want records for the current date.

I get this error message:
Undefined function Date() in expression

I went to the help section and this is a valid function....should still work in 2000.  

Is there something else I should have updated when I converted to 2000, or am I missing the obvious answer?

I appreciate all help!
Avatar of michellejohnson
michellejohnson

ASKER

Edited text of question.
ASKER CERTIFIED SOLUTION
Avatar of BrianWren
BrianWren

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
To add to what BrianWren has said, if all the references are there try a repair and compact on the database.  I had this same problem with the Mid function and this seemed to solve it.
Thanks both of you.  I checked that all the references were there, and they were...except for utility.mda  I found the file and saved.  Still did not work. Then I ran compact and repair database.  Still did not work.  I went back in and checked off MS VB for Apps extensibilty 5.3

Problem fixed.

Thanks for the direction!

Michelle
Was at a total loss of where to go.  He pointed me in the right direction and I got my fix!