G
Guest
Here is what I have on a form:
=DSum("[NI]","[tblProductionData]","[ProgramType]='" & [ProgramType] & "'
AND [PostcardPhase]='" & [PostcardPhase] & "' AND [Resort]='" & [Resort] & "'
AND [Team]='" & [Team] & "' AND [CallCenter]='" & [CallCenter] & "' AND
[Date]=#" & [Date] & "#")
Everything works fine as long as all the criteria fields have data. The
problem occurs when one of the criteria fields is blank within the table.
When this happens it gives me nothing. Just a blank. All of the fields will
always have data except the PostcardPhase field. What do I need to add so
that it still gives me a sum when PostcardPhase is blank? Thank You.
=DSum("[NI]","[tblProductionData]","[ProgramType]='" & [ProgramType] & "'
AND [PostcardPhase]='" & [PostcardPhase] & "' AND [Resort]='" & [Resort] & "'
AND [Team]='" & [Team] & "' AND [CallCenter]='" & [CallCenter] & "' AND
[Date]=#" & [Date] & "#")
Everything works fine as long as all the criteria fields have data. The
problem occurs when one of the criteria fields is blank within the table.
When this happens it gives me nothing. Just a blank. All of the fields will
always have data except the PostcardPhase field. What do I need to add so
that it still gives me a sum when PostcardPhase is blank? Thank You.