A
Adam.Tyson
Dear Access Experts,
I'm using Access 2003 and I'm having the following problem.
I have a form (called MainForm) that contains 2 sub forms (called
SubForm1 and SubForm2).
Both SubForm1 and SubForm2 are datasheet views.
When the selected row changes in SubForm1, I need to change the
RecordSource property in SubForm2. The row changed event I'm capturing
in the Form_Current() sub on SubForm1. I thought I would be able to
access SubForm2 from SubForm1 with something along the lines of:
Private Sub Form_Current()
Me.Parent!Subform2.Form.RecordSource = "select * from mySubTable
where myTableId ='" + Me.myTableId + "'"
End Sub
But, I can't seem to get the syntax correct (assuming such an approach
is possible).
Can someone point me in the right direction?
Thanks,
Adam
I'm using Access 2003 and I'm having the following problem.
I have a form (called MainForm) that contains 2 sub forms (called
SubForm1 and SubForm2).
Both SubForm1 and SubForm2 are datasheet views.
When the selected row changes in SubForm1, I need to change the
RecordSource property in SubForm2. The row changed event I'm capturing
in the Form_Current() sub on SubForm1. I thought I would be able to
access SubForm2 from SubForm1 with something along the lines of:
Private Sub Form_Current()
Me.Parent!Subform2.Form.RecordSource = "select * from mySubTable
where myTableId ='" + Me.myTableId + "'"
End Sub
But, I can't seem to get the syntax correct (assuming such an approach
is possible).
Can someone point me in the right direction?
Thanks,
Adam