Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing Variables from Form to Report

Status
Not open for further replies.

ron108

Programmer
Jun 19, 2002
14
US
HOW DO I PASS DATA ENTERED ON A FORM TO A REPORT WHEN I USE THE REPORT FORM... COMMAND
 
Hi ron,

If it is a variable.. declare them public before initialising them. When you leave the form.. you can release these public variables after the reporting is over.

Or you can create an object to hold these variables. Refer them with object reference and release the object after you leave the report.

PUBLIC myVar1, myVar2
myVar1 = ThisForm.cVar1
..
..
REPORT FORM myForm .......

RELEASE myVr1, myVar2

:)

:) ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 
THANKS

I WAS CREATING THE PUBLIC VARIABLES BUT WAS NOT RELEASING THEM.

WHEN I RELEASED THE REPORT PRINTED AS IT SHOULD
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top