Date()

K

Kim

When I add this to a field on the criteria - I get an
error indicating that the syntax is incorrect or that the
expression is too complex, I can use this in my Access
2000 version - but why can't I use this in my Access 97
version????
 
J

John Mishefske

Kim said:
When I add this to a field on the criteria - I get an
error indicating that the syntax is incorrect or that the
expression is too complex, I can use this in my Access
2000 version - but why can't I use this in my Access 97
version????

Can you post the SQL if this is a query or explain a little more
what you're doing?
 
K

Kim

I have a field in a query called appointment date, and I
want to just display todays date when a form is opened
(that uses this query). So I added "DATE()" to the
criteria on the query - but it will not run the query
 
J

John Mishefske

Kim said:
I have a field in a query called appointment date, and I
want to just display todays date when a form is opened
(that uses this query). So I added "DATE()" to the
criteria on the query - but it will not run the query

You could just create a textbox on the form and set its
controlsource property to

=Date

If you want another field in your query with today's date
then add a new column and type

TodayDate: Date()

in the Field: row of the column.
 
J

John Vinson

When I add this to a field on the criteria - I get an
error indicating that the syntax is incorrect or that the
expression is too complex, I can use this in my Access
2000 version - but why can't I use this in my Access 97
version????\

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.
 

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