[vb6] referring back to a form
I'm working with some source code where formA loads formB, the formB accesses and modifies a recordset belonging to formA. I've been asked to modify the source in such a way that formB can be loaded from any of forms A, C, D, E or F (all of which are incidences of formAlfa) and refer to whichever form it was loaded from.
I could do it by making a completely different form like formB, for each of these calls, but that seems a bit ass.
Any ideas how I can say 'formthatcalledme.data1.recordset', rather than formA.data1.recordset, formB.data1.recordset, etc? Or is there any other way to work round this?
__________________
"No one was behaving from very Buddhist motives. Then, thought Pigsy, he was hardly a Buddha, nor was he a monkey. Presently, he was a pig spirit changed into a little girl pretending to be a little boy to be offered to a water monster. It was all very simple to a pig spirit."
|