B
Biggles
Can someone tell me what I am doing wrong. This code
works in one database, but not an another. I have an
unbound combo box with a row source of a SELECT statement
in the form header. When I select one of the customers,
the detail portion of the form does not change. This code
is in the after update control of the field.
Private Sub Combo9_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[txtCUST_NO] = '" & Me![txtCUST_NO] & "'"
Me.Bookmark = rs.Bookmark
End Sub
Sean
works in one database, but not an another. I have an
unbound combo box with a row source of a SELECT statement
in the form header. When I select one of the customers,
the detail portion of the form does not change. This code
is in the after update control of the field.
Private Sub Combo9_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[txtCUST_NO] = '" & Me![txtCUST_NO] & "'"
Me.Bookmark = rs.Bookmark
End Sub
Sean