Ok here is my problem, i have a report selection form which help generate report based on all types of criteria, the one problem i have is when i i don't fill in the Agent box(see snapshot)(left empty) i want all agents on my report. here is the sql code i have. I have tried various Iif statement combos
((tblData.[Beazley Agent])=IIf([Forms]![frmReportDateRange]![cboAgent] Is Not Null,[Forms]![frmReportDateRange]![cboAgent])));
((tblData.[Beazley Agent])=IIf([Forms]![frmReportDateRange]![cboAgent] Is Not Null,[Forms]![frmReportDateRange]![cboAgent])));
Attachments
Last edited: