G
GLT
Hi,
I have a main form with two sub forms.
The 1st subform displays a summary list, the main form displays the details
of whatever record is selected in the 1st subform, and the 2nd sub form
displays other related data.
When a record is selected in the 1st subform, the main form and subform # 2
change to reflect the new record selected.
I use the following code to do this:
If Not IsNull(Me!ID) Then
Parent.RecordsetClone.FindFirst "ID= " & Me.ID
If Not Parent.RecordsetClone.EOF Then
Parent.Bookmark = Parent.RecordsetClone.Bookmark
End If
End If
The problem I am having is when a record is selected in subform # 1, and the
main form and subform #2 update (via the above code), the record selector in
subform #1 goes to the 1st record - even though this is not the current one
displayed in the main form and sub form # 2.
How can I keep the record selector in subform #1 on the original record that
was selected after the above code has executed?
Any help is always greatly appreciated...
Cheers,
GLT.
I have a main form with two sub forms.
The 1st subform displays a summary list, the main form displays the details
of whatever record is selected in the 1st subform, and the 2nd sub form
displays other related data.
When a record is selected in the 1st subform, the main form and subform # 2
change to reflect the new record selected.
I use the following code to do this:
If Not IsNull(Me!ID) Then
Parent.RecordsetClone.FindFirst "ID= " & Me.ID
If Not Parent.RecordsetClone.EOF Then
Parent.Bookmark = Parent.RecordsetClone.Bookmark
End If
End If
The problem I am having is when a record is selected in subform # 1, and the
main form and subform #2 update (via the above code), the record selector in
subform #1 goes to the 1st record - even though this is not the current one
displayed in the main form and sub form # 2.
How can I keep the record selector in subform #1 on the original record that
was selected after the above code has executed?
Any help is always greatly appreciated...
Cheers,
GLT.