When a user enters a start and end date on a form (into txtStartDate and txtEndDate), a report opens and an unbound text box shows the parameter used.
The control source for the text box is:
="Date Range: " & [txtStart] & " to " & [txtEnd]
where txtStart is a hidden control on the report set to:
=Forms.frmnuReportSelect.txtStartDate
and txt End is a hidden control on the report set to:
=Forms.frmnuReportSelect.txtEndDate
I would like to have alternative text show if the txtStartDate and txtEndDate controls on the form are null (i.e., the user didn't specificy a date range). The text could say something like:
"Date Range: All dates."
The current syntax I've tried results in:
"Date Range: to"
Current syntax:
=IIf(IsNull(Forms![frmnuReportSelect!txtStartDate]),"Date Range: All Dates","Date Range: " & [txtStart] & " to " & [txtEnd])
How chould I edit this, or would it be better to make two text boxes and set their visible property according to the values passed from the form?
Thanks! - Kurt
The control source for the text box is:
="Date Range: " & [txtStart] & " to " & [txtEnd]
where txtStart is a hidden control on the report set to:
=Forms.frmnuReportSelect.txtStartDate
and txt End is a hidden control on the report set to:
=Forms.frmnuReportSelect.txtEndDate
I would like to have alternative text show if the txtStartDate and txtEndDate controls on the form are null (i.e., the user didn't specificy a date range). The text could say something like:
"Date Range: All dates."
The current syntax I've tried results in:
"Date Range: to"
Current syntax:
=IIf(IsNull(Forms![frmnuReportSelect!txtStartDate]),"Date Range: All Dates","Date Range: " & [txtStart] & " to " & [txtEnd])
How chould I edit this, or would it be better to make two text boxes and set their visible property according to the values passed from the form?
Thanks! - Kurt