Hi,
I have some sql in a sub that finds dates in a table but only if the
date is less than today
WHERE [MonthYear] < Now()
I want it to do that but to not include the current month.
For instance, a list of dates in dd/mm/yy format
1/01/05
01/02/05
etc
etc
01/11/05
01/12/05
01/01/06
01/02/06
If I run this today (11/01/06) 01/01/06 is included in the result
because it is less than today.
But I dont want the current month included.
Any ideas.
Bob
I have some sql in a sub that finds dates in a table but only if the
date is less than today
WHERE [MonthYear] < Now()
I want it to do that but to not include the current month.
For instance, a list of dates in dd/mm/yy format
1/01/05
01/02/05
etc
etc
01/11/05
01/12/05
01/01/06
01/02/06
If I run this today (11/01/06) 01/01/06 is included in the result
because it is less than today.
But I dont want the current month included.
Any ideas.
Bob
Comment