M
mjbruesch
I have a text box in a form, text box name is txtDaysOld, form name is
frmQueries. The user enters a number in the text box then clicks a
button to run a query. The query needs to pull all records older than
the number of days they entered in the text box. I tried setting the
criteria for the date of the record like this:
<Date() - CInt(Forms.frmQueries.txtDaysOld)
But it tells me the expression is too complex. I am familiar with VBA
so I could try something there if it would be easier. Any suggestions
on how to get this done?
Thanks.
frmQueries. The user enters a number in the text box then clicks a
button to run a query. The query needs to pull all records older than
the number of days they entered in the text box. I tried setting the
criteria for the date of the record like this:
<Date() - CInt(Forms.frmQueries.txtDaysOld)
But it tells me the expression is too complex. I am familiar with VBA
so I could try something there if it would be easier. Any suggestions
on how to get this done?
Thanks.