AnnieRider
MIS
I have a report that uses Parameters DateFrom and DateTo and picks up records where the field DateStart is between these two.
The DateStart is a DateTime field and I've selected the DataType in the Parameter as such.
The report itself shows the DateStart values for each record, I don't want to show the time so I have entered the following in the expression for the textbox:
=Format(Fields!DateStart.Value,"dd/MM/yyyy")
My problem is that this seems to prevent the report from running, I get the following error message:
Argument not specified for parameter 'StringDate' of 'Public Function DateValue(StringDate As String) As Date
It runs ok without formatting the display of DateStart in the report but this shows the time which I don't want.
How can I use the parameter AND display the date in the report as date only please?
Many Thanks
Annie
The DateStart is a DateTime field and I've selected the DataType in the Parameter as such.
The report itself shows the DateStart values for each record, I don't want to show the time so I have entered the following in the expression for the textbox:
=Format(Fields!DateStart.Value,"dd/MM/yyyy")
My problem is that this seems to prevent the report from running, I get the following error message:
Argument not specified for parameter 'StringDate' of 'Public Function DateValue(StringDate As String) As Date
It runs ok without formatting the display of DateStart in the report but this shows the time which I don't want.
How can I use the parameter AND display the date in the report as date only please?
Many Thanks
Annie