P
Pwyd
All right. So i have several fields in this query. Here's my problem: if i
remove the part about "alba" "natasha" and "yohannes" it includes everything.
whether the field is null or not. If i have that field and restriction in
there, however, it also removes any of the records which have that field as
null. I want the filter to include null field, AND natasha, alba, yohannes.
i've tried both adding it further down in the criteria list, on its own line,
and making a non-showing field that has just that criteria. no luck. What am
i doing wrong?
Code for query:
SELECT DISTINCTROW MailLog.Batchnumber AS [Batch Number],
MailLog.LoggingAssigned AS [Logging Assigned to], MailLog.LoggingAssignedDate
AS [Date Logging Assigned], MailLog.ProcessingAssignedto AS [Processing
Assigned to], MailLog.ProcessingAssignedDate AS [Date Processing Assigned]
FROM MailLog
WHERE (((MailLog.ProcessingAssignedto) Not Like "yohannes" And
(MailLog.ProcessingAssignedto) Not Like "Alba" And
(MailLog.ProcessingAssignedto) Not Like "Natasha") AND
((MailLog.ProcessingCompleteDate) Is Null) AND ((MailLog.Urgentcheckbox) Like
Yes)) OR (((MailLog.ProcessingCompleteDate) Like ""));
remove the part about "alba" "natasha" and "yohannes" it includes everything.
whether the field is null or not. If i have that field and restriction in
there, however, it also removes any of the records which have that field as
null. I want the filter to include null field, AND natasha, alba, yohannes.
i've tried both adding it further down in the criteria list, on its own line,
and making a non-showing field that has just that criteria. no luck. What am
i doing wrong?
Code for query:
SELECT DISTINCTROW MailLog.Batchnumber AS [Batch Number],
MailLog.LoggingAssigned AS [Logging Assigned to], MailLog.LoggingAssignedDate
AS [Date Logging Assigned], MailLog.ProcessingAssignedto AS [Processing
Assigned to], MailLog.ProcessingAssignedDate AS [Date Processing Assigned]
FROM MailLog
WHERE (((MailLog.ProcessingAssignedto) Not Like "yohannes" And
(MailLog.ProcessingAssignedto) Not Like "Alba" And
(MailLog.ProcessingAssignedto) Not Like "Natasha") AND
((MailLog.ProcessingCompleteDate) Is Null) AND ((MailLog.Urgentcheckbox) Like
Yes)) OR (((MailLog.ProcessingCompleteDate) Like ""));