>Hi everyone,
>
>I knew it should be a way to pass a parameter into report, but I don't remember how. Could you please tell me? Suppose, in my report I have a title:
>lcCustomerName, where lcCustomerName should be a parameter set in run time, while executing REPORT FORM myReport TO PRINTER. How can I do that?
>
>
>Thanks in advance.
Nadya,
Mark's route is the one I take too. You could use any variable from calling routine in report. That is if calling method has access to something like :
Thisform.txtStartDate.Value
then report has access to exactly to same value (IOW you can use Thisform.txtStartDate.Value as an expression in report). For reports it doesn't matter variables are declared local in calling routine. If routine could access those variables then report could access too.
IMHO other than Title and Summary bands it would be nonsense to call functions that would invoke user interface except very special situations.
Cetin