Access 97, DATE() Function not working

J

J WOOD

Recently my supervisor had an issue where Access 97 on his computer would not
evaluate the function DATE() when it appeared in queries and as a footer to
many of his reports. I could still run the function on my computer. However,
my computer has been hit with the same fate some two months later and now
nothing in Access that has the DATE() function will operate properly. In some
instances we can use the Now() function and set the format to short date, but
this does not solve all our problems. We have tried reloading Access 97, but
this has not solved our problem. What would be causing the Date() function to
suddently become inopperable?

The normal error that Access now generates in response to the DATE()
function is:

This expression is typed incorrectly, or it is too complex to be evaluated.
For example, a numeric expression may contain too many complicated elements.
Try simplifying the expression by assigning parts of the expression to
variables."
 
F

fredg

Recently my supervisor had an issue where Access 97 on his computer would not
evaluate the function DATE() when it appeared in queries and as a footer to
many of his reports. I could still run the function on my computer. However,
my computer has been hit with the same fate some two months later and now
nothing in Access that has the DATE() function will operate properly. In some
instances we can use the Now() function and set the format to short date, but
this does not solve all our problems. We have tried reloading Access 97, but
this has not solved our problem. What would be causing the Date() function to
suddently become inopperable?

The normal error that Access now generates in response to the DATE()
function is:

This expression is typed incorrectly, or it is too complex to be evaluated.
For example, a numeric expression may contain too many complicated elements.
Try simplifying the expression by assigning parts of the expression to
variables."

Open any module in Design view (or click Ctrl + G).
On the Tools menu, click References.
Click to clear the check box for the type library or object library
marked as "Missing:."

An alternative to removing the reference is to restore the referenced
file to the path specified in the References dialog box. If the
referenced file is in a new location, clear the "Missing:" reference
and create a new reference to the file in its new folder.

See Microsoft KnowledgeBase articles:
283115 'ACC2002: References That You Must Set When You Work with
Microsoft Access'
Or for Access 97:
175484 'References to Set When Working With Microsoft Access' for
the correct ones needed,
and
160870 'VBA Functions Break in Database with Missing References' for
how to reset a missing one.

For even more information, see
http://www.accessmvp.com/djsteele/AccessReferenceErrors.html
 
J

James A. Fortune

J said:
Recently my supervisor had an issue where Access 97 on his computer would not
evaluate the function DATE() when it appeared in queries and as a footer to
many of his reports. I could still run the function on my computer. However,
my computer has been hit with the same fate some two months later and now
nothing in Access that has the DATE() function will operate properly. In some
instances we can use the Now() function and set the format to short date, but
this does not solve all our problems. We have tried reloading Access 97, but
this has not solved our problem. What would be causing the Date() function to
suddently become inopperable?

The normal error that Access now generates in response to the DATE()
function is:

This expression is typed incorrectly, or it is too complex to be evaluated.
For example, a numeric expression may contain too many complicated elements.
Try simplifying the expression by assigning parts of the expression to
variables."

If none of your references are missing and you recently put, say, Office
2K3 on the machine, try unchecking the DAO 3.5 reference and checking
the DAO 3.6 reference placed there by the Office 2K3 install. Then
close and open Tools -> References... (to move the new reference near
the top quickly), and then move the DAO 3.6 reference as high as
possible. Then test.

James A. Fortune
(e-mail address removed)
 

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