G
Guest
I am making a combo box in which a entry person will choose a dealer name and
what is stored in a subform is a number. This combo box pulls up a record on
the main form based the value chosen in the combo box. This code seems to
work fine when the table the form is based on is a linked table to the back
end, but I can't make it work when it is a static table in the front end.
How can I modify this to make it work in the front end?
'Pulls up dealer contact information when a dealer name is chosen.
Private Sub DealerName_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[LicenseID] = " & Str(Nz(Me![DealerName], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
what is stored in a subform is a number. This combo box pulls up a record on
the main form based the value chosen in the combo box. This code seems to
work fine when the table the form is based on is a linked table to the back
end, but I can't make it work when it is a static table in the front end.
How can I modify this to make it work in the front end?
'Pulls up dealer contact information when a dealer name is chosen.
Private Sub DealerName_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[LicenseID] = " & Str(Nz(Me![DealerName], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub