Simple Software Solutions
Presumeably you code performs some sort of validation routine based on the user entry? Correct?
If so, then your next step is to create a small modal popup form that contains a listbox, Cancel button and a 'Use Me' button.
Senario:
User types in ACME in to customer name field, you perform a count and find you have 5 companies with the phrase "ACME" in their name - so which one does the user want?
Open your new form so that the list box displays the customer id, company name, first line of the address, etc. where the company name Like "*ACME*". This is useful, in this senerio, if you allow partial string comparison.
Have your 'Use Me' button disabled on form open. When the user clicks on the listbox to identify the correct company this will do two things a) enable the 'Use Me' button, b) pass the company ID to a preset variable.
When the user clicks on the 'Use Me' button your code will set the filter on the preceeding form based on the company id in the list box selected item in the popup form. Finally the popup form closes.
Code has been simplified for brevity.
CodeMaster:
