Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dates

Status
Not open for further replies.

AccessXP

IS-IT--Management
Jan 29, 2002
132
I need help with a query showing dates older than 3 weeks.

any help would be appreciated.


Thanks.
 
Set the criteria under your date field to:
< DateAdd("ww",-3, Date())

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
I have a date field that marks the current days date. I need it to find dates that are 21 days or older than the current date.

Sorry for lack of info the first go around.
 
I am even more confused since I don't understand what you mean by "a date field that marks the current days date".

I also don't know if you tried my solution and if it did or didn't work and why.

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
I did try your solution it pulled all records. Thats why I tried to give more information. The date field is todays date when the app is opened.
 
You must have a date field that is not todays date. Maybe you need to provide some sample records with field names and desired query results.

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top