Hi,
I'm using Access 2003 and am passing a parameter in a query which is used as the record source of a report.
One of the options a user can select is 'ALL' which passes the 'Like *' code to a string which is then referred to by the parameter.
I have tried a number of different methods:
Code:
strPeriodParam = " Like "*""
strPeriodParam = Chr(32) & Chr(76) & Chr(105) & Chr(107) & Chr(101) & Chr(32) & Chr(34) & Chr(42) & Chr(34)
(The 2 examples are the same when debugging)
either is then passed to the following function:
Code:
Public Function ParameterPeriod()
ParameterPeriod = strPeriodParam
End Function
The ParameterPeriod() is used in the specific query column. But the (report) output is NOT displaying any results. However, if I manually enter 'Like *', then it does produce results.
Any ideas Please?
Thanks in advance,