PDA

View Full Version : VBA so I cant make same selection in combo box



oxicottin
01-06-2016, 09:27 PM
Hello I have a combo box [cboRejectLotNumber] on a continious form [fsub_RejectedData] and I cant have the same selection used more than once. What VBA can I add that will stop the user and give a message and send them back to the combo box? Thanks!

jonh
01-07-2016, 04:24 AM
In the table, change the indexed property of the field to "Yes (No Duplicates)" and handle the error in your vba.