Hi,
I have a subform where a user can enter reference numbers for various parts that correspond to pages on a catalog. If a user repeats a reference number on the subform (if it's already been entered on the subform), then I want an error message to pop up indicating that this number has already been used.
So, when a new reference number is entered, I'm wondering if I should iterate through the referencenumber control and check each value for duplicates. Or, if I should do some kind of lookup in the table for these values. I'd rather iterate through the values if this is possible, this way I don't have to worry about requerying the table. Does anyone know if/how this is possible?
I have a subform where a user can enter reference numbers for various parts that correspond to pages on a catalog. If a user repeats a reference number on the subform (if it's already been entered on the subform), then I want an error message to pop up indicating that this number has already been used.
So, when a new reference number is entered, I'm wondering if I should iterate through the referencenumber control and check each value for duplicates. Or, if I should do some kind of lookup in the table for these values. I'd rather iterate through the values if this is possible, this way I don't have to worry about requerying the table. Does anyone know if/how this is possible?