I need to synchronize combo boxes, so that when I select an item in the first combo box, the selection limits
the choices in the second combo box. I need to requery when I click in the second combo box (in the event was clicked for first) so I use the following code:
Private Sub Dettaglio_MouseDown
Posizione1 = Me.CurrentRecord
DoCmd.Requery
DoCmd.GoToRecord , , acGoTo, Posizione1
DoCmd.GoToControl "Dettaglio"
Me!Dettaglio = Me!Dettaglio.ItemData(0)
End Sub
The problem is that using this code become impossible select from the second combobox menu. Remain selectioned and blocked the first item. If I don't use the previous code become possible make a selection.