Hi everyone,
I tried to figure a way for an hole day and cound't manage it so please help me.
I know that I can run a form with parameter with Form.Run command but what if I want to activeate a subform using C/side parameters???
To be precise I have a customer form (Card taype) and a subform in one of its tabs (table type) for that customers contacts.
I couldt just filter contancts of a customer from subform properties since three tables involved (Customer, contact, Business contact relationship)
I couldn't send variables form customer to contact list (don't know if it could be done but I tried defining the variables as global in customer form an it isn't recognised from the contact list form) And I don't know how to filter my subform Contact lists records by code
what should I do?
//EMK\\
0
Comments
Do these things:
1: Fill in the name property of the subform control like 'SUBFORM'.
2: In the subform object create a function with parameters like 'MYFUNCTION(Param1, Param2, etc)'.
3: Call this function from the parent form like:
'CurrForm.SUBFORM.Form.MYFUNCTION(Param1, Param2, etc)
Do your processing in the MYFUNCTION function in the subform object.
You cant call back the parent form from the subform.