H
Hugh self taught
Hi,
I have a Male (Yes/No) field & my lookup query must return all non male if
the "Male" field is Yes & visa versa, but as soon as I add the WHERE line, no
records show. Below is the query
SELECT tblNationalMaster.NatMaster_Idx, tblNationalMaster.[FIRST NAME] & " "
& tblNationalMaster.SURNAME AS NameMaster, tblNationalMaster.[FIRST NAME],
tblNationalMaster.SURNAME, IIf([tblNationalMaster.Male],Yes,No) AS Gender,
tblNationalMaster.Male
FROM tblNationalMaster
ORDER BY tblNationalMaster.[FIRST NAME] & " " & tblNationalMaster.SURNAME;
The Where line I added is WHERE (((tblNationalMaster.Male)<>[Gender]))
I also tried using a subquery but then got "FROM CLAUSE" errors even though
my syntax is copied from the help axample online
I have a Male (Yes/No) field & my lookup query must return all non male if
the "Male" field is Yes & visa versa, but as soon as I add the WHERE line, no
records show. Below is the query
SELECT tblNationalMaster.NatMaster_Idx, tblNationalMaster.[FIRST NAME] & " "
& tblNationalMaster.SURNAME AS NameMaster, tblNationalMaster.[FIRST NAME],
tblNationalMaster.SURNAME, IIf([tblNationalMaster.Male],Yes,No) AS Gender,
tblNationalMaster.Male
FROM tblNationalMaster
ORDER BY tblNationalMaster.[FIRST NAME] & " " & tblNationalMaster.SURNAME;
The Where line I added is WHERE (((tblNationalMaster.Male)<>[Gender]))
I also tried using a subquery but then got "FROM CLAUSE" errors even though
my syntax is copied from the help axample online