Access 2002 SP3 -- Calculated Field Using Current Date

Z

ZAK

I want to create a calculated field in my database. The current field is as
follows:

Days Since Test: [Date Completed]-[Date Test Conducted]

But, I want to substitute the [Date Completed] field with the current date
so that I can track how "old" an assignment is. How do I modify my
expression to use the current date?
 
P

pietlinden

I want to create a calculated field in my database.  The current field is as
follows:

Days Since Test: [Date Completed]-[Date Test Conducted]

But, I want to substitute the [Date Completed] field with the current date
so that I can track how "old" an assignment is.  How do I modify my
expression to use the current date?

Days Since Test: Date()-[Date Test Conducted]
 
Z

ZAK

When I paste your modified expression into my database and run the query, I
get the error: "undefined function 'Date' in expression". Any further
suggestions?

I want to create a calculated field in my database. The current field is as
follows:

Days Since Test: [Date Completed]-[Date Test Conducted]

But, I want to substitute the [Date Completed] field with the current date
so that I can track how "old" an assignment is. How do I modify my
expression to use the current date?

Days Since Test: Date()-[Date Test Conducted]
 
Z

ZAK

Problem solved by another query response in this forum : Date function not
recognized on 02/24/2008

ZAK said:
When I paste your modified expression into my database and run the query, I
get the error: "undefined function 'Date' in expression". Any further
suggestions?

I want to create a calculated field in my database. The current field is as
follows:

Days Since Test: [Date Completed]-[Date Test Conducted]

But, I want to substitute the [Date Completed] field with the current date
so that I can track how "old" an assignment is. How do I modify my
expression to use the current date?

Days Since Test: Date()-[Date Test Conducted]
 

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