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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access 2000: Date Function as Criteria for Query.

Status
Not open for further replies.

Wozza

Programmer
Jan 29, 2002
13
GB
Is it possible to enter criteria in a query for the current month or last month?
I can set up the query to ask me for the first and last dates (inclusive) but I am wanting to produce lots of queries that a macro runs - so I do not want to repeatedly enter these dates.
 
If I've understood correctlty, it may help to have the start and end dates entered into text boxes on a form, and point the queries to them eg Between Forms![yourform]![start] And forms![yourform]![finish].

As long as the form stays open while the queries run they can reference these dates as many times as necessary, and you only have to key them once.

HTH Nigel
Didn't someone say work is supposed to be fun? They didn't have computers then I guess....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top