Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to retrieve records that have a field with multiple values? 1

Status
Not open for further replies.

notageek7

Technical User
Jan 23, 2004
54
US
I've got a combo box change event that requeries a listbox. My problem is the sql statement works fine to display all records that match the combo box value when the records field is a single value (like that in the combo box). My problem is I've inherited a database that has records with fields that have multiple values in them. For example, a field named error codes can contain numerous error codes. So an order can have 'MD03,MD42,CP12' in it's error code field. What is the best way to look through the records and populate the listbox with all records with a particular error code, so the listbox would also include those records that have multiple error codes? Sorry for the long confusing question.
 
Thank you, I'm currently learning more options with sql.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top