I can't get an expression to work because of the way a date is being stored in a text box.
txt box = frmRptCriteria.txtYYYY
Its control source is =Date()
It's formatted as YYYY
Even though its formatted as "YYYY" it stores a full date, 3/2/2007 instead of just 2007. This causes the following expression in a report to find zero records instead of 34:
=Sum(Abs(Year([EntryDate])=[Forms]![frmRptCriteria]![txtYYYY]))
How can I make [txtYYYY] store just the current year instead of a full date so that the expression finds records matching only YYYY?
txt box = frmRptCriteria.txtYYYY
Its control source is =Date()
It's formatted as YYYY
Even though its formatted as "YYYY" it stores a full date, 3/2/2007 instead of just 2007. This causes the following expression in a report to find zero records instead of 34:
=Sum(Abs(Year([EntryDate])=[Forms]![frmRptCriteria]![txtYYYY]))
How can I make [txtYYYY] store just the current year instead of a full date so that the expression finds records matching only YYYY?