So I have a multifield search form that searches the database.
I have fields that if left blank will be ignored (or rather, display all results).
However, I have a field that a person can fill in a number, and it'll display all results from the database that are less than said number. Which works, but I can't for the life of me get it to ignore said field if the user does not enter a value.
Normal text field query:
Numeric (less than) field query:
No matter where I put the Like "*" & &"*" tags it does not work. If I put the as in the normal text field query, it displays me results that have no numeric value in said field. But that's not what I want, if there is no value entered in said numeric field I just want it to ignore it (or rather, display all results regardless of what numeric value they have).
If anyone could help me that would be wonderful...
I have fields that if left blank will be ignored (or rather, display all results).
However, I have a field that a person can fill in a number, and it'll display all results from the database that are less than said number. Which works, but I can't for the life of me get it to ignore said field if the user does not enter a value.
Normal text field query:
Code:
Like "*" & [Forms]![SearchF]![BEHEERDER] & "*"
Numeric (less than) field query:
Code:
<[Forms]![SearchF]![AANTAL MAANDEN MINDER DAN]
If anyone could help me that would be wonderful...