F
Frances
I have a form with two combo boxes, one selection is based on the other.
However, it always overwrites a source record after the seconde selection is
done. How do I tell the form NOT to write selections from combo boxes back
to source table? Should I not use After_update()? Please help. Thanks.
Private Sub Select1_Combo_AfterUpdate()
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[field1] = '" & Me![Select1_Combo] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
Me![Select2_Combo].Requery
End Sub
Private Sub Select2_Combo_AfterUpdate()
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[field2] = '" & Me![Select2_Combo] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
However, it always overwrites a source record after the seconde selection is
done. How do I tell the form NOT to write selections from combo boxes back
to source table? Should I not use After_update()? Please help. Thanks.
Private Sub Select1_Combo_AfterUpdate()
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[field1] = '" & Me![Select1_Combo] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
Me![Select2_Combo].Requery
End Sub
Private Sub Select2_Combo_AfterUpdate()
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[field2] = '" & Me![Select2_Combo] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub