hazelsisson
Programmer
Hi,
I have a report which asks the user for a parameter [Week Commencing].
The parameter is used both in the query and is displayed on the report.
I have a public function which returns a date value which is calculated from the parameter value. I'm trying to use this function in both the query and on the report, but I can't get it to work.
On the report I have a text box with this entered:
...but it just displays exactly that, rather than the function return value.
I've also tried formatting the parameter, e.g.
and that doesn't work either.
It must be something simple but I can't find what I'm doing wrong!
Can anyone point me in the right direction?
Thanks,
Hazel
I have a report which asks the user for a parameter [Week Commencing].
The parameter is used both in the query and is displayed on the report.
I have a public function which returns a date value which is calculated from the parameter value. I'm trying to use this function in both the query and on the report, but I can't get it to work.
On the report I have a text box with this entered:
Code:
= financial_year([Week Commencing])
I've also tried formatting the parameter, e.g.
Code:
=financial_year(format([Week Commencing],"dd/mm/yy"))
It must be something simple but I can't find what I'm doing wrong!
Can anyone point me in the right direction?
Thanks,
Hazel