So I have a single pop up form with 4 cascading combo boxes. I've written the following code to auto populate if the combobox only returns a single list value, which makes it a little simpler for the user. (this is on in the after update event for each combobox)
This all works just the way I want it to. The issue now is that if the user goes back to the first combobox, after a selection has already been made in the others, the remaining controls don't update. I've tried to add a line to requery the whole form in the above code but no luck. I know this has got to be something simple that I'm missing here but I'm on a short deadline and have been stuck on this for hours. TIA!
Code:
Private Sub cboPartNumber_AfterUpdate()
If Me.cboDieNumber.ListCount = 1 Then
Me.cboDieNumber = Me.cboDieNumber.ItemData(0)
End If
End Sub
This all works just the way I want it to. The issue now is that if the user goes back to the first combobox, after a selection has already been made in the others, the remaining controls don't update. I've tried to add a line to requery the whole form in the above code but no luck. I know this has got to be something simple that I'm missing here but I'm on a short deadline and have been stuck on this for hours. TIA!