I have two combo boxes on a form. The first allows the user to search a record by name, and when a record is selected, all of the other controls on the form are updated. I don’t remember how I did this, and I think it may have been through the wizard. But now I want to add a second combo box that allows users to search by address, but when an address is selected in this new combo box, the record does not update.
Here is what I have tried:
Private Sub Form_Activate()
Me.Refresh
End Sub
And…
Private Sub Combo250_AfterUpdate()
Me.Requery
End Sub
And also a SearchForRecord Macro which searches for the First record with using this WHERE clause
="[ID] = " & Str(Nz(Screen.ActiveControl,0))
The two tables involved are Demographics and Addresses, and they are joined by the ID column.
Please help!
Use the wizard to add the combobox and when the option shows “Find a record on my form based on the value I select in my combobox”, choose that and continue through the wizard.
Manual code: