through following query i trying to merge three things parEmail , parEmployeeLogin , and parStaffID
now in the case one is null i get whole NameValue null .
SELECT (parFirstname +' '+ parSurname) AS NAME,
(parEmail +','+ parEmployeeLogin +','+ parStaffID) AS NameValue
FROM [tblParticipants]
where parFirstname Is Not Null
ORDER BY parFirstname
NameValue only have data in it if all three fields have data, it’s fetching NAME properly….i am using this to get data out of Access file..what changes should be done in this oledb query..
NULL+ anything =NULL. You’ve preventedpartFirstNamefrom beingNULLwith yourWHEREclause, but if either of the other two columns isNULL, the entire result isNULL.You’ll have to either use
IIFto provide alternate values forNULLcolumns, or change yourWHEREto handle multipleNULLcolumns. (Untested) query for first option (don’t have Access on this machine):