Hi,
try this:
private txtCompanyName
txtCompanyName="ABC Company"
REPORT FORM incrpt16.frx TO PRINTER NOCONSOLE PREVIEW
>Hi,
>I have a variable, txtCompanyName, create in a report using report designer,
>I want the variable txtCompanyName contain the Company Name which pass from a Form by press the command button which have following code.
>
>
>txtCompanyName="ABC Company"
>REPORT FORM incrpt16.frx TO PRINTER NOCONSOLE PREVIEW
>
>
>The result not success,how to pass the Company name to the variable in the report ?
>
>Please advise.
>
>Thanks.
>Derek