IIf statement to select ALL records

lynxbci

Registered User.
Local time
Today, 22:32
Joined
Nov 27, 2007
Messages
73
Hi

Have a simple query with input from a combo box. If the user selects 'All' i want to show all records.
Code:
=IIf([Forms]![frm_Dry_tow_Chart]![combo_customer]="All","*",[Forms]![frm_Dry_tow_Chart]![combo_customer])
I have tried "*" (As in above example) and tried 'Like"*"', Is Not NUll, none of which work.......

How is this done?

Thanks in advance
 
Try;
Code:
= Like IIf([Forms]![frm_Dry_tow_Chart]![combo_customer]="All","*",[Forms]![frm_Dry_tow_Chart]![combo_customer])
 
Howzit

Try...

Code:
Like "*" & [Forms]![frm_Dry_tow_Chart]![combo_customer] & "*"
 

Users who are viewing this thread

Back
Top Bottom