Overdue Date Query

Steve WWU

New member
Local time
Today, 17:00
Joined
Jan 23, 2011
Messages
4
I have always used <Date() or <-Date() in queries to find records that are overdue before. I am now getting dates returned for 01/03/2011 which obviosuly arent overdue. Any ideas - I have tried indexing the date filed in the table and removing the type and even checking all current date settings on the PC to no avail - anyone? :(
 
What regoinal settings have you got UK or US?
 
Hi David UK settings
 
Try using DateDiff()

Overdue:DateDiff("d",Date1,Date())

Condition >0
 
Did you check the field's property -> format in the query if it is same as the PC's date format?
 
Thanks David

I will give that a whirl. Looks good to me.
Thanks for all your help

Steve
 
You're not going to believe this guys (or maybe you are) it was a simple problem in the end - the table I was querying had the field set as text and not date format - relly elementary mistake. Sorry to have wated anyones time but thanks for all the advice.

Regards

Steve G
 

Users who are viewing this thread

Back
Top Bottom