I
ifiaz
I have the following query:
---
SELECT [qry03_DayRoster].StaffNo, [qry03_DayRoster].StaffName,
[qry03_DayRoster].DutyTime, [qry03_DayRoster].E_UniqueName,
[qry02_ActiveStaffNonMgmt].E_UniqueName
FROM qry03_DayRoster LEFT JOIN qry02_ActiveStaffNonMgmt
ON
[qry03_DayRoster].E_UniqueName=[qry02_ActiveStaffNonMgmt].E_UniqueName;
---
Both [qry03_DayRoster].E_UniqueName and
[qry02_ActiveStaffNonMgmt].E_UniqueName
is a calculated expression that concatenates the StaffNumber and
StaffName like this:
E_UniqueName: [StaffNo] & LCase(Left([E_FullName],2))
e.g. a returned value might be "577777fi"
[qry02_ActiveStaffNonMgmt].E_UniqueName is supposed to return NULL when
matching E_UniqueName can't be found on [qry03_DayRoster].E_UniqueName.
But, it returns a single space " " for those NULL values instead. This
causes confusion for me.
Is there an explanation for this?
Am I clear enough with the problem statement?
Please reply.
---
SELECT [qry03_DayRoster].StaffNo, [qry03_DayRoster].StaffName,
[qry03_DayRoster].DutyTime, [qry03_DayRoster].E_UniqueName,
[qry02_ActiveStaffNonMgmt].E_UniqueName
FROM qry03_DayRoster LEFT JOIN qry02_ActiveStaffNonMgmt
ON
[qry03_DayRoster].E_UniqueName=[qry02_ActiveStaffNonMgmt].E_UniqueName;
---
Both [qry03_DayRoster].E_UniqueName and
[qry02_ActiveStaffNonMgmt].E_UniqueName
is a calculated expression that concatenates the StaffNumber and
StaffName like this:
E_UniqueName: [StaffNo] & LCase(Left([E_FullName],2))
e.g. a returned value might be "577777fi"
[qry02_ActiveStaffNonMgmt].E_UniqueName is supposed to return NULL when
matching E_UniqueName can't be found on [qry03_DayRoster].E_UniqueName.
But, it returns a single space " " for those NULL values instead. This
causes confusion for me.
Is there an explanation for this?
Am I clear enough with the problem statement?
Please reply.