Pyro
Too busy to comment
- Local time
- Tomorrow, 05:33
- Joined
- Apr 2, 2009
- Messages
- 127
Hiyas,
I am trying to requery an unbound combo on a subform based on a record selection on another subform (default view continuous forms).
The unbound combo has this code running in it:
The subform (which is set to continuous forms) where i am selecting the record is running this:
When i select a row on the unbound combo that is below row one, a memo field is updated with the corresponding record, the code fails when i select a new record in the other subform. The memo field displays data from the same row as the previously selected record. i.e. it is not being requeried to display the first record again...
Any thoughts?
I am trying to requery an unbound combo on a subform based on a record selection on another subform (default view continuous forms).
The unbound combo has this code running in it:
Code:
Private Sub N_Subject_afterUpdate()
'Move to the record selected in the control
Me.RecordsetClone.FindFirst "[NotesID] = " & Me![N_Subject]
Me.Bookmark = Me.RecordsetClone.Bookmark
End Sub
The subform (which is set to continuous forms) where i am selecting the record is running this:
Code:
Private Sub Detail_Click()
Forms![frm_Customer_Details]![sfrm_Quote_note].Form![N_Subject].Requery
Forms![frm_Customer_Details]![sfrm_Quote_note].Form![N_Subject] = Forms![frm_Customer_Details]![sfrm_Quote_note].Form![N_Subject].ItemData(0)
End Sub
Private Sub Form_Click()
Forms![frm_Customer_Details]![sfrm_Quote_note].Form![N_Subject].Requery
Forms![frm_Customer_Details]![sfrm_Quote_note].Form![N_Subject] = Forms![frm_Customer_Details]![sfrm_Quote_note].Form![N_Subject].ItemData(0)
End Sub
When i select a row on the unbound combo that is below row one, a memo field is updated with the corresponding record, the code fails when i select a new record in the other subform. The memo field displays data from the same row as the previously selected record. i.e. it is not being requeried to display the first record again...
Any thoughts?