BradCollins
Technical User
Hi All,
I have a query that restricts my data to the selected truck number, and the last 3 digits of the trip number.
This works fine, and shows all the correct results, what I want to do now is in the same query show all trips for the selected truck of nothing is entered in the trip id field.
what I have is:
iif([RestrictSearch] is null, like "*", right([TripID],3))
it will still show the records based on the last 3 digits, but shows no records if the RestrictSearch field is blank.
Any help would be most appreciated. Thanks
I have a query that restricts my data to the selected truck number, and the last 3 digits of the trip number.
This works fine, and shows all the correct results, what I want to do now is in the same query show all trips for the selected truck of nothing is entered in the trip id field.
what I have is:
iif([RestrictSearch] is null, like "*", right([TripID],3))
it will still show the records based on the last 3 digits, but shows no records if the RestrictSearch field is blank.
Any help would be most appreciated. Thanks