H
Heidi
I have a simple form that has DealerName (a text field), LicenseID (a number
field), and address info. I want to make a combo box that selects a record
on my form based on the choice picked from the combo box. I went through the
wizard's prompts, but when I try the combo box out, the dealer name and
subsequent license/address info doesn't show up on my form. Here is the code
the wizard created:
Private Sub Combo22_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[LicenseID] = " & Str(Nz(Me![Combo22], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Any ideas?
field), and address info. I want to make a combo box that selects a record
on my form based on the choice picked from the combo box. I went through the
wizard's prompts, but when I try the combo box out, the dealer name and
subsequent license/address info doesn't show up on my form. Here is the code
the wizard created:
Private Sub Combo22_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[LicenseID] = " & Str(Nz(Me![Combo22], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Any ideas?