This is a simplified version of process for selecting customers by Type and Postcode.
It starts with qryCustomersWithAddresses, which contains all customer details.
The user chooses a Customer Type in the combo, whose AfterUpdate runs query A-Customers to select customers of a selected Type.
If Private is the chosen Type there are too many results for printing labels so, just for CustomerType = "Private", I want to extract only Customers with a PostalCode starting with a chosen pair of letter, say CM.
In trying to do this my starting point was a new query based on A-Customer but can't find how to build a criterion on PostalCode that would include IIF([CustomerType] = "Private" then Like([Enter Postalcode] & "*" and something to close the IIF
Any help appreciated
It starts with qryCustomersWithAddresses, which contains all customer details.
The user chooses a Customer Type in the combo, whose AfterUpdate runs query A-Customers to select customers of a selected Type.
If Private is the chosen Type there are too many results for printing labels so, just for CustomerType = "Private", I want to extract only Customers with a PostalCode starting with a chosen pair of letter, say CM.
In trying to do this my starting point was a new query based on A-Customer but can't find how to build a criterion on PostalCode that would include IIF([CustomerType] = "Private" then Like([Enter Postalcode] & "*" and something to close the IIF
Any help appreciated