Hi there
I have a query which uses a form with two unbound fields on it to provide its selection criteria. This works fine when both fields are filled but if a user leaves a field blank because they want a wider search, the query returns no records at all. For example, if I want to find a labourer who earns £500-£700 - no problem but if I just want to find all labourers regardless of earnings (so leave earnings field blank) I get no records. Is there something you can use in an IIf function in the query to ignore the form field's reference?
Thanks Sandra
I have a query which uses a form with two unbound fields on it to provide its selection criteria. This works fine when both fields are filled but if a user leaves a field blank because they want a wider search, the query returns no records at all. For example, if I want to find a labourer who earns £500-£700 - no problem but if I just want to find all labourers regardless of earnings (so leave earnings field blank) I get no records. Is there something you can use in an IIf function in the query to ignore the form field's reference?
Thanks Sandra