return all values when criteria is null in a Between expression

Benwatson

Registered User.
Local time
Today, 12:24
Joined
Oct 11, 2016
Messages
26
hi all i have a query that criteria is linked to a form now i need the query to return all the results even if the criteria box is null this includes two date fields

so this is the code i have but keeps throwing it back saying its too complicated or entered incorrectly

PHP:
Between IIf(IsNull([Forms]![frmfeedbackgiven]![txtdatefrom]),"*",[Forms]![frmfeedbackgiven]![txtdatefrom]) And IIf(IsNull([Forms]![frmfeedbackgiven]![txtdateto]),"*",[Forms]![frmfeedbackgiven]![txtdateto])

please help
 

Users who are viewing this thread

Back
Top Bottom