View Single Post
Old 05-12-2004, 03:30 AM   #1 (permalink)
John Henry
Addict
 
Location: Grey Britain
[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."
John Henry is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73