See if this does what you want:
SELECT uniquew.[Supporter No], uniquew.[Post Code], uniquew.[Last Name],
uniquew.[First Name]
FROM uniquew
WHERE ((((uniquew.[Supporter No]) Like [Forms]![main]![Text20] & "*") OR
uniquew.[Supporter No] Is Null) AND
(((uniquew.[Post Code]) Like [Forms]![main]![Text15] & "*") OR
uniquew.[Post Code] Is Null) AND
(((uniquew.[Last Name]) Like "*" & [Forms]![main]![Text31] & "*") OR
uniquew.[Last Name] Is Null) AND
(((uniquew.[First Name]) Like "*" & [Forms]![main]![Text45] & "*")) OR
uniquew.[First Name] Is Null);
--
Wayne Morgan
MS Access MVP
flow23 said:
The sql view look like
SELECT uniquew.[Supporter No], uniquew.[Post Code], uniquew.[Last Name],
uniquew.[First Name]
FROM uniquew
WHERE (((uniquew.[Supporter No]) Like [Forms]![main]![Text20] & "*") AND
((uniquew.[Post Code]) Like [Forms]![main]![Text15] & "*") AND
((uniquew.[Last Name]) Like "*" & [Forms]![main]![Text31] & "*") AND
((uniquew.[First Name]) Like "*" & [Forms]![main]![Text45] & "*"));
What I want is that if any of the field is blank (or empty) the record
should still be displayed on the query.
so for example. post code is blank , it should still display the record
if
it matches the criteria.