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

Date parameter in a query.

Status
Not open for further replies.

texan1956

IS-IT--Management
Mar 26, 2001
4
US
I've got a table with a date field (mm/dd/yyyy). I'm using a parameter query asking for the mm/dd to be entered. My problem is that when I enter the 04/20 as the parameter I only get back one record when I know that I have more than one record that meets that parameter. Is there a reason for this? Can anyone tell me what may be wrong.
 
The date field in your query needs to be set up to just look for "mm/dd". To do this you could add the following to a blank column in your query. Change the Date field name as appropriate.
MthDay:Format([YourDateFieldName],"mm/dd")
Then put the parameter in this field. You will need to add the leading zeros for the month and day when you enter parameter values(i.e. 04/01; 07/15).
Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top