G
Guest
Im a little stuck doing a query.
In one of the tables the name of the user can be in any one of three fields,
and i have been asked to create a query where a popup appears to enter the
name of person to search for in each three fields. e.g. one popup for "auth
name", one for "imp name" and one for "test name".
however if nothing/null is entered in one of these popups it is skipped.
e.g. if nothing is entered for "auth name" it will show all fields. unlike if
i tell it "[auth name] is null"
Im trying to use IIF, but i cannot get this to work
My code is
WHERE (((ChangeDetails.Authorised)=[auth name]) AND
((ChangeDetails.Tested)=[test name]) AND ((ChangeDetails.Implemented)=[imp
name])) OR ((iif [auth name] Is Null) AND (iif [test name] Is Null) AND (iif
[imp name] Is Null));
Please help.
In one of the tables the name of the user can be in any one of three fields,
and i have been asked to create a query where a popup appears to enter the
name of person to search for in each three fields. e.g. one popup for "auth
name", one for "imp name" and one for "test name".
however if nothing/null is entered in one of these popups it is skipped.
e.g. if nothing is entered for "auth name" it will show all fields. unlike if
i tell it "[auth name] is null"
Im trying to use IIF, but i cannot get this to work
My code is
WHERE (((ChangeDetails.Authorised)=[auth name]) AND
((ChangeDetails.Tested)=[test name]) AND ((ChangeDetails.Implemented)=[imp
name])) OR ((iif [auth name] Is Null) AND (iif [test name] Is Null) AND (iif
[imp name] Is Null));
Please help.