Hello,
I've successfully used the following code to allow buttons on one subform to control the source object of another subform:
frm1
subfrm1 subfrm2
buttons controlled source object
Now I'm trying to allow subform buttons within a subform to control the source object of another subform and am obviously unable to use the same code.
frm1
subfrm1 subfrm2
subsub1 controlled source object
buttons
I even tried unsuccessfully using this code:
Anyone know how I can accomplish what I'm trying to do?
I'm sure someone will probably ask why I don't just do a cascading list box, but I don't want to for good reason.
I've successfully used the following code to allow buttons on one subform to control the source object of another subform:
frm1
subfrm1 subfrm2
buttons controlled source object
Code:
me.parent.subfrm2.sourceobject = frm2
me.parent.subfrm2.form.requery
Now I'm trying to allow subform buttons within a subform to control the source object of another subform and am obviously unable to use the same code.
frm1
subfrm1 subfrm2
subsub1 controlled source object
buttons
I even tried unsuccessfully using this code:
Code:
me.parent.frm1.subfrm2.sourceobject = frm2
me.parent.frm1.subfrm2.form.requery
Anyone know how I can accomplish what I'm trying to do?
I'm sure someone will probably ask why I don't just do a cascading list box, but I don't want to for good reason.
Last edited: