Question : Clearing a combo box selection?

In the header of my form I have an alphabetical drop box that works.  I can click on the arrow to jump to a record or type in some of the persons name and it will jump to their record.  I also have a second box that does the same based on SSN.  

If I select a record using a name and then I search on using SSN I have to clear the other box manually.  Is there an automated was of clearing the opposite box?

Name box
SELECT [tblCaregivers].[ID], [tblCaregivers].[CaregiverLastName]& ", " & [tblCaregivers].[CaregiverFirstName] AS Expr1 FROM [tblCaregivers] ORDER BY [tblCaregivers].[CaregiverLastName],[tblCaregivers].[CaregiverFirstName]


SSN box
SELECT [tblCaregivers].[ID], [tblCaregivers].[CaregiverSSN] FROM [tblCaregivers];

I have attached a screen shot

Answer : Clearing a combo box selection?

in the afterupdate event of the first combo box, clear the second combobox

private sub comboName_afterupdate()
me.comboSSN=""

end sub
Random Solutions  
 
programming4us programming4us