S
Steven Knopf
How do I use a report to call a function where the function's first
parameter is optional and I want to leave it blank in the report?
My function is declared thus:
Public Function foo(Optional bar1 As Integer = 0, Optional bar2 As Integer =
0) As Integer
and I want to call it in a report thus:
=foo(,1)
but when I enter this in the report design I get the error message:
"The expression you entered contains invalid syntax.
You may have entered a comma without a preceding value or identifier"
Well yes I have, and that's what I want to do.
Any ideas how to achieve this in Access 2002 greatly appreciated.
parameter is optional and I want to leave it blank in the report?
My function is declared thus:
Public Function foo(Optional bar1 As Integer = 0, Optional bar2 As Integer =
0) As Integer
and I want to call it in a report thus:
=foo(,1)
but when I enter this in the report design I get the error message:
"The expression you entered contains invalid syntax.
You may have entered a comma without a preceding value or identifier"
Well yes I have, and that's what I want to do.
Any ideas how to achieve this in Access 2002 greatly appreciated.