I'm setting the where clause for a query (the forms recordsource). On a numeric field if the user does not set a value, l want to select all records. I thought the simplest solution would be set the criteria to be Like "*", but this does not work. I am contructing this like so;
if cboFilter.value = cboFilter.defaultvalue then
Filter1 = [myFieldName] & " Like '*' "
Else
Filter1 = [myFieldName] & " = " & me.cboFilter
End if
Hope you can help. I'm under a deadline