Skip to main content

Need help with resetting a combo box. The combo box works fine if a name is selected. I also have a option to enter a customer number. If a wrong customer number is used the combo box will duplicate all the customers again. At the wrong customer I initialize the PO-BOX-CHOICES and reload the table. What might I be missing to prevent duplicates on the combo box?

Screen1 is the normal Screen.

Screen2 is when it duplicates.

Working Storage is the table.

Screen Function is the indexing of the combo box.

Need help with resetting a combo box. The combo box works fine if a name is selected. I also have a option to enter a customer number. If a wrong customer number is used the combo box will duplicate all the customers again. At the wrong customer I initialize the PO-BOX-CHOICES and reload the table. What might I be missing to prevent duplicates on the combo box?

Screen1 is the normal Screen.

Screen2 is when it duplicates.

Working Storage is the table.

Screen Function is the indexing of the combo box.

It is difficult to tell. The combo box already contains values, and then you modify adding the data that is in working storage. It would seem that you need to empty or perhaps destroy the combo-box, re-display it and then modify it with the working storage data.