Also in some additional function I want to add to the report that it generate. The title of the report includes a date range according to the date selected from the form. The additional function I want to add is to detect whether the From and To dates are the same, then the title of the report will includes a single date instead of 2 dates.
E.g.
For a single date will be: Report of Area (2010/05/28).
And for date range will be: Report of Area (2010/01/01 - 2010/05/28).
I have the following code in the report_open
And when execute it shows error 438 and "Object doesn't support this property or method"
** Edit **
This question was split from Report generation with filter in form.
E.g.
For a single date will be: Report of Area (2010/05/28).
And for date range will be: Report of Area (2010/01/01 - 2010/05/28).
I have the following code in the report_open
Code:
If [Forms].[rptArea].[txtFromDateA] = [Forms].[rptTrainingHrs].[txtToDateA] Then
txtTitle.ControlSource = "Total Training Hours in Area (" & [Forms].[rptArea].[txtFromDateA] & ")"
Else
txtTitle.ControlSource = "Total Training Hours in Area (" & [Forms].[rptArea].[txtFromDateA] & " - " & [Forms].[rptArea].[txtToDateA] & ")"
End If
** Edit **
This question was split from Report generation with filter in form.
Comment