Past Due Dates

J

JamesJ

I'm using the following sql to show items dated today +6 days in advance.
How
might I also show items dated prior to Date() (past due items).

SELECT * FROM tblReminders WHERE (((ReminderDate) Between Date() And
Date()+6)
AND ((ReminderTypeID)<3)) ORDER BY ReminderDate, ReminderTime, Reminder;

Thanks,
James
 
J

John W. Vinson

I'm using the following sql to show items dated today +6 days in advance.
How
might I also show items dated prior to Date() (past due items).

Just change it to

SELECT * FROM tblReminders WHERE (((ReminderDate) < Date()+6)
AND ((ReminderTypeID)<3)) ORDER BY ReminderDate, ReminderTime, Reminder;

John W. Vinson [MVP]
 
J

JamesJ

Worked great.

Thanks,
James

John W. Vinson said:
Just change it to

SELECT * FROM tblReminders WHERE (((ReminderDate) < Date()+6)
AND ((ReminderTypeID)<3)) ORDER BY ReminderDate, ReminderTime, Reminder;

John W. Vinson [MVP]
 

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