CJBIRKIN
Drink!
- Local time
- Today, 19:18
- Joined
- May 10, 2002
- Messages
- 256
Hi
For reasons best left unsaid i am trying to change the recordsource of an unbound subform from a button on another unbound subform.
mainform = Frm_Frames
Subform = FRM_AUDIT_MENU subform called FRAME_1
Subform = FRM_SELECT_AUDIT subform called FRAME_2
Simply, i collect an SQL string from controls on Frame_1 and use it to create the recordsource for Frame_2.
I have been able to do this when doing this with a mainform/subform.
Me.Form!FRAME_2.Form.RecordSource = StrRecSource
But i don't seem to be able to do it from Frame_1, i expected something like
Form_Frm_Frames.Form!FRAME_2.Form.RecordSource = StrRecSource
But i get the error "You entered an expression that has an invalid reference to the property form/report"
Any clues
Cheers
Chris
For reasons best left unsaid i am trying to change the recordsource of an unbound subform from a button on another unbound subform.
mainform = Frm_Frames
Subform = FRM_AUDIT_MENU subform called FRAME_1
Subform = FRM_SELECT_AUDIT subform called FRAME_2
Simply, i collect an SQL string from controls on Frame_1 and use it to create the recordsource for Frame_2.
I have been able to do this when doing this with a mainform/subform.
Me.Form!FRAME_2.Form.RecordSource = StrRecSource
But i don't seem to be able to do it from Frame_1, i expected something like
Form_Frm_Frames.Form!FRAME_2.Form.RecordSource = StrRecSource
But i get the error "You entered an expression that has an invalid reference to the property form/report"
Any clues
Cheers
Chris