I have a form with a combo list box that is populated with the names of members of a golf society held on an Excel spreadsheet.
My code is on combo list box_Click event.
Having selected a member his/hers details are passed to various other text boxes ok.
My problem is that if I reject my initial choice of member this is done by a simple vbYesNo MsgBox, when I reselect another member the text boxes do not change.
It obviously is not running through my code again which is supposed to do a MATCH of the members name selected from the combo list box with those held on Excel and then pick up the various cell values to populate the text boxes again.
Although the members name changes in the combo list box it does not change on the form but keeps the original name selected.
The .ListIndex value of the combo list box gets set to -1.
I have tried an If....Then....Else and a Do While but alas no success.
Hope this all makes sense.
Any help would be greatly appreciated.
My code is on combo list box_Click event.
Having selected a member his/hers details are passed to various other text boxes ok.
My problem is that if I reject my initial choice of member this is done by a simple vbYesNo MsgBox, when I reselect another member the text boxes do not change.
It obviously is not running through my code again which is supposed to do a MATCH of the members name selected from the combo list box with those held on Excel and then pick up the various cell values to populate the text boxes again.
Although the members name changes in the combo list box it does not change on the form but keeps the original name selected.
The .ListIndex value of the combo list box gets set to -1.
I have tried an If....Then....Else and a Do While but alas no success.
Hope this all makes sense.
Any help would be greatly appreciated.