![]() |
| |||||||
| Sponsored Links |
![]() |
| | LinkBack | Thread Tools | Display Modes |
|
#1
| |||
| |||
| Hi, I have a table the design is like this ID Description In description the field can hold values in 2 ways Tee - Shirt XL Tee-shirt Size - None Either the sizes will be S, M, L, XL, XXL, XXXL after Tee - Shirt What i want to do is check what value the field has If it has Tee-shirt Size - None then set the strtshirt variable to No Tshirt If the value is like this Tee - Shirt S or Tee - Shirt M or Tee - Shirt L or Tee - Shirt XL or Tee - Shirt XXL or Tee - Shirt XXXL then get the shirt size like S, M, L, XL, XXL, XXXL and store it in the variable strtshirt I am having problems how to query the table and then extract the shirt size todd |
| Sponsored Links |
|
#3
| |||
| |||
| I know the table design was poor but it holds 111,000 records I dont have permission to change it thats the problem |
|
#4
| ||||
| ||||
| Why not use a LIKE query to search for fields that contain "tee" and "shirt": Code: strSQL = "SELECT * FROM MyTable WHERE MyField LIKE '%tee%' AND MyField LIKE '%shirt%'"
__________________ "You'll never be as perfect as BLaaaaaaaaarche." |
![]() |
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|