Hi All,
I have a flex project that I'm working on and in the project I am taking a range of part numbers from user entered data and trying to get an inclusive list of part numbers based on that range. The only problem is that I don;t get the the inclusion of the last part number. For example, I use a start of A0000 and and End of C9999. What I get is all the part numbers starting with A and B but no C. If I change and make the End Number a D, then I get all the A, B and C part numbers but no D part numbers.
rs_1.Open "SELECT item_no FROM IMITMIDX_SQL WHERE item_no BETWEEN '" & StartNbr & "' AND '" & EndNbr & "'"
That is the SQL statement. I have tried all sorts of combinations but either the staement fails to return a recordset or the last part number is not included.
Any suggestions?
Rob
I have a flex project that I'm working on and in the project I am taking a range of part numbers from user entered data and trying to get an inclusive list of part numbers based on that range. The only problem is that I don;t get the the inclusion of the last part number. For example, I use a start of A0000 and and End of C9999. What I get is all the part numbers starting with A and B but no C. If I change and make the End Number a D, then I get all the A, B and C part numbers but no D part numbers.
rs_1.Open "SELECT item_no FROM IMITMIDX_SQL WHERE item_no BETWEEN '" & StartNbr & "' AND '" & EndNbr & "'"
That is the SQL statement. I have tried all sorts of combinations but either the staement fails to return a recordset or the last part number is not included.
Any suggestions?
Rob