Here's my sql string:
strSQL = "SELECT yield FROM 5000records WHERE partnum = 9594 AND line = STD OR line = HS1 OR line = HS2
I'm trying to grab all yield values from table 5000records where the part number is 9594 and the line is STD or HS1 or HS2. The above string selects ALL of the HS1 and HS2 even when the part number isn't 9594. Any ideas?
strSQL = "SELECT yield FROM 5000records WHERE partnum = 9594 AND line = STD OR line = HS1 OR line = HS2
I'm trying to grab all yield values from table 5000records where the part number is 9594 and the line is STD or HS1 or HS2. The above string selects ALL of the HS1 and HS2 even when the part number isn't 9594. Any ideas?