olorin
Registered User.
- Local time
- Today, 18:59
- Joined
- Jun 9, 2006
- Messages
- 81
I have a simple form with a Combo box on it acting as a drop down list so the user can select a customer name. Once they select a customer name they click a button on the form to open a report based on the customer they selected.
All works fine.
The problem is, there are 41 customers to choose from, and I have got the button to decide which customer they selected by having 41 "IF" statements in the code.
Surely there must be an easier way.
Also, if a new customer is added to the database, then I would also have to add another "IF" statement to the code.
Any help would be appreciated, (41 times over)
All works fine.
The problem is, there are 41 customers to choose from, and I have got the button to decide which customer they selected by having 41 "IF" statements in the code.
Surely there must be an easier way.
Also, if a new customer is added to the database, then I would also have to add another "IF" statement to the code.
Any help would be appreciated, (41 times over)
