General information
Category:
Coding, syntax & commands
Title:
How to access one form's controls from another
I have a generic Form which I call to do all my reports. I would norammly call this from the application forms e.g.
In MyAppForma Do form ReportForm with 'Reporta'
In MyAppFormb Do form ReportForm with 'Reportb' etc.
Then, ReportForm allows selection of Screen/printer/File etc.
Quite often , I will need to access properties of the first calling form (.i.e MyAppForma, MyAppFormb etc) within the report irself.
I could maybe pass these as parameters, but the paramters going into ReportForm will be dependant on the calling screen, and will change each time.
Is there any way to pass the whole form as an 'Object' into ReportForm so that i could say somthing like:
laVar1= ReportForm.oCallingForm.Property1
lavar2= ReportForm.oCallingForm.Property2 etc.
and then have these available to print on the report.
Thanks for your help
Gerard
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only