J
Johnny Bright
Hi there,
I have a combo box wih the following code:
Private Sub cboFindHole_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[HoleNumber] = '" & Me![cboFindHole] & "'"
Me.Bookmark = rs.Bookmark
Set rs = Nothing
End Sub
This works great and takes me right to the record I want to see. Currently
the combo is unbound. What I want to do in bind it to my holenumber field so
it serves a dual purpose. The problem comes up when I add a new record with
the combo box taking holenumber as its control source. it tells me i am
creating duplicate records. Is it possble to have a combo box serve this
dual purpose?
Thanks!
I have a combo box wih the following code:
Private Sub cboFindHole_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[HoleNumber] = '" & Me![cboFindHole] & "'"
Me.Bookmark = rs.Bookmark
Set rs = Nothing
End Sub
This works great and takes me right to the record I want to see. Currently
the combo is unbound. What I want to do in bind it to my holenumber field so
it serves a dual purpose. The problem comes up when I add a new record with
the combo box taking holenumber as its control source. it tells me i am
creating duplicate records. Is it possble to have a combo box serve this
dual purpose?
Thanks!