>How can i show a variable from a form on the report?I did it only for the first view of report(preview) when i use variable name directly from the form,when 2nd touch on the report(click on next page or zoom), the variable was gone bcoz the form was run over.Please help!
You can declare the variable either as public or as private. I recommend private, since it is less "drastic". Declare it in the same procedure in which you invoke the report (or in which you invoke another procedure, which then calls the report).
For example:
private pcTitle
pcTitle = alltrim(ThisForm.TxtReportTitle.Value)
report form abcde
In the report, you might show the variable title in a field expression.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)