E
ernestb08 via AccessMonster.com
I want to filter my records from a week's past.
I'm using vba code.
I got the button to work for the current date filter:
DoCmd.ApplyFilter , "Date = Date()"
Now I'm trying to filter my records for the current date minus 7 days with
the following:
show all records from: 10-25-2006 back to 10-18-2006.
Me.Filter = "Date() - 7" or Me.Filter = "Date() - Date()-7"
DoCmd.ApplyFilter , "Date() - 7" or DoCmd.ApplyFilter, "Date()-Date()-7"
It appears everytime it returns all of my records after I press the button.
Any Help will be appreciated.
Thanks, Ernie
I'm using vba code.
I got the button to work for the current date filter:
DoCmd.ApplyFilter , "Date = Date()"
Now I'm trying to filter my records for the current date minus 7 days with
the following:
show all records from: 10-25-2006 back to 10-18-2006.
Me.Filter = "Date() - 7" or Me.Filter = "Date() - Date()-7"
DoCmd.ApplyFilter , "Date() - 7" or DoCmd.ApplyFilter, "Date()-Date()-7"
It appears everytime it returns all of my records after I press the button.
Any Help will be appreciated.
Thanks, Ernie