R
rdunne
I need to compare a date field with the current date and determine if it is
higher or lower, putting the answer in another field
higher or lower, putting the answer in another field
I need to compare a date field with the current date and determine if it is
higher or lower, putting the answer in another field
John Vinson said:I need to compare a date field with the current date and determine if it is
higher or lower, putting the answer in another field
Well, you certainly should NOT store the result of this comparison in
another table field. If the comparison is True today, it might be
False tomorrow.
You can get a Yes/No field by a very simple expression: type
DateHasPassed: [Datefield] < Date()
in a vacant Field cell in a query. The expression will evaluate
(correctly, regardless of your computer's formatting) to either True
or False.
John W. Vinson[MVP]
John
I have tried this, but I am getting a problem with CHECK Contraints. How do
I check the date in one field against todays date and put the answer(YES/NO)
in another field.
Richard.