G
Guest
Hi
I am trying to integrate a union query with either an IF or IIF (I'm not
sure which I should use)
My statement is currently as follows:
SELECT IIF(Not IsNull([strAltLast]) , [strLast] &", "& [strFirst] & "and " &
[strAltLast] & ", " & [strAltFirst], IIF(Not IsNull([strAltFirst]) ,
[strLast] & ", " & [strFirst] & " and "& [strAltFirst] , [strLast] & ", "&
[strfirst])) AS VoterMember
FROM tblResidential
UNION ALL SELECT tblBusiness.strCompany AS VoterMember,
FROM tblBusiness;
I am now getting the error message "....... Reserved word or argument is
misspelled or incorrect punctuation....."
Can somebody please straighten this out for me??
Thanks
I am trying to integrate a union query with either an IF or IIF (I'm not
sure which I should use)
My statement is currently as follows:
SELECT IIF(Not IsNull([strAltLast]) , [strLast] &", "& [strFirst] & "and " &
[strAltLast] & ", " & [strAltFirst], IIF(Not IsNull([strAltFirst]) ,
[strLast] & ", " & [strFirst] & " and "& [strAltFirst] , [strLast] & ", "&
[strfirst])) AS VoterMember
FROM tblResidential
UNION ALL SELECT tblBusiness.strCompany AS VoterMember,
FROM tblBusiness;
I am now getting the error message "....... Reserved word or argument is
misspelled or incorrect punctuation....."
Can somebody please straighten this out for me??
Thanks