If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Previous Dates
Hi all, i am ashamed to admit that i can not figure this one out..
In one table i have the DateCreated field. In my query i want to display all records created today, Date() and during the previous two days. If today is Thursday i also want to see the records created Tuesday and Wednesday and today.. I am trying this -2!=Date() but it fails.. Any ideas? Thanks! |
#2
|
|||
|
|||
Previous Dates
Date( ) + 1 AND = Date( ) - 2
should do, in the grid., as criteria. Vanderghast, Access MVP "Peter" wrote in message ... Hi all, i am ashamed to admit that i can not figure this one out.. In one table i have the DateCreated field. In my query i want to display all records created today, Date() and during the previous two days. If today is Thursday i also want to see the records created Tuesday and Wednesday and today.. I am trying this -2!=Date() but it fails.. Any ideas? Thanks! |
#3
|
|||
|
|||
Previous Dates
Thank you very much! Indeed it works perfect!
"vanderghast" wrote: Date( ) + 1 AND = Date( ) - 2 should do, in the grid., as criteria. Vanderghast, Access MVP "Peter" wrote in message ... Hi all, i am ashamed to admit that i can not figure this one out.. In one table i have the DateCreated field. In my query i want to display all records created today, Date() and during the previous two days. If today is Thursday i also want to see the records created Tuesday and Wednesday and today.. I am trying this -2!=Date() but it fails.. Any ideas? Thanks! |
Thread Tools | |
Display Modes | |
|
|