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

date range in a query

Status
Not open for further replies.

wshs

Programmer
Nov 22, 2005
220
US
i have a query which consists of 3 criteria
PRnum, =[forms]![frm1_purrequisition]![txtpr]
Payee, =[forms]![frm1_PurRequisition]![payee]
Date,

I have "fromDate" and "toDate" on the form and i don't know how set the criteria to return all the records inbetween those dates... how would I do that?

---------------------------------
event of search cmd button.

DoCmd.OpenForm "frm1_PurRequisition", , "qry_PurRequisition
 
Date, Between [Forms]![frm1_PurRequisition]![fromDate] And [Forms]![frm1_PurRequisition]![toDate]

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
between.. i see. thank you ph
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top