Hi
I want to return records where the year of a date in each record matches a year the user enters on a form. I have the following where clause:
WHERE (DatePart("yyyy",[tblClient.DateA])=[forms]![frmRptMenu].[form]![txtYear])
I get no records returned although this works if i just enter the year within the query.
Any suggestions?
Thanks
Lou
I want to return records where the year of a date in each record matches a year the user enters on a form. I have the following where clause:
WHERE (DatePart("yyyy",[tblClient.DateA])=[forms]![frmRptMenu].[form]![txtYear])
I get no records returned although this works if i just enter the year within the query.
Any suggestions?
Thanks
Lou