I have a form that contains a combobox (holding customer names/ IDs). If the user enters a customer that does not exist or if they want to add a customer, I created a pop-up form that allows them to do this.
The form does validate the user's entry but only if it exactly matches a record from my Customer table. But, I found occasions where the user does not use the reference form (lists all existing records in Customer table). So, a user could create multiple similar entries for the same customer (i.e. Joe's Flowers, Joe's, Joe's Flower Shop).
So, I am trying to figure out if there is a way to run code that searches for similar values. I believe 'LIKE' is something that could be applicable but I can't remember how to use it. Ideally, I would have code that runs on BeforeUpdate checking for similar values. If similar values are found, then a warning message would indicate the similar values and prompt the user to make sure that their Customer creation is correct.
Is this possible? If not, is there some better solution that I am overlooking?
The form does validate the user's entry but only if it exactly matches a record from my Customer table. But, I found occasions where the user does not use the reference form (lists all existing records in Customer table). So, a user could create multiple similar entries for the same customer (i.e. Joe's Flowers, Joe's, Joe's Flower Shop).
So, I am trying to figure out if there is a way to run code that searches for similar values. I believe 'LIKE' is something that could be applicable but I can't remember how to use it. Ideally, I would have code that runs on BeforeUpdate checking for similar values. If similar values are found, then a warning message would indicate the similar values and prompt the user to make sure that their Customer creation is correct.
Is this possible? If not, is there some better solution that I am overlooking?