Hey all, first time poster. I've only been using Access and VBA for about a week, so pardon my inexperience. I am trying to synchronize two combo boxes on a form. One combo box is used to select a name of an athlete (cboAthleteID) and the other is to select a corresponding injury (cboInjuryID). Athletes can have any number of injuries, but an injury can only be associated with one athlete. Using the code below, I have everything working the way I'd like it to except for one issue:
The cboInjuryID value I choose on the initial record carries over when I switch to the next record. If I start a new record, the cboInjuryID value I chose on the previous record will automatically carry over. The cboAthleteID value does not do this. I would like for neither to do that.
Private Sub cboAthleteID_AfterUpdate()
Me.cboInjuryID = Null
Me.cboInjuryID.Requery
Me.cboInjuryID = Me.cboInjuryID.ItemData(0)
End Sub
How do I prevent this from occuring? I appreciate any help! If I need to post a screenshot or more info, let me know.