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!

Between dates criteria in query

Status
Not open for further replies.

Frank72

Technical User
Nov 13, 2001
57
IE
Hows it going

simple question here i think.. im trying to run a report based on a query which uses 2 text box entries on a form as a criteria for a field 'DateCustDetailsEntered', i've put this in the criteria box

<// Between [Forms]![frmCustDetails]![txtDateFrom] And [Forms]![frmCustDetails]![txtDateTo] //>

and the query is coming up blank, is this syntax wrong?
how do i use two text boxes to get a date between?

thanks alot

frank
 
Frank,

Just a thought - text boxes don't contain dates. They contain text strings. Try:

<// Between CDate([Forms]![frmCustDetails]![txtDateFrom]) And CDate([Forms]![frmCustDetails]![txtDateTo]) //>

Ed Metcalfe.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top