G
Guest
I have a string that's like "0101A" and "515A". When these strings are
ordered (in the Order By clause) the "0101A" comes before the "515A". In
other words it's being ordered alphabetically. I need it to be ordered
NUMERICALLY! 515 comes before 1010. How can I do this in a VB6 program
reading from an Access database?
The query looks like this:
STR_TEMP = "SELECT LABELS.BIN, LABELS.ROUTE, LABELS.STOP, " & _
"FROM LABELS " & _
"WHERE (((LABELS.PRINT_TYPE) = """ & "STORE" & """)) " & _
"ORDER BY LABELS.ROUTE, LABELS.STOP DESC, LABELS.BIN;"
Thanks
Steve
ordered (in the Order By clause) the "0101A" comes before the "515A". In
other words it's being ordered alphabetically. I need it to be ordered
NUMERICALLY! 515 comes before 1010. How can I do this in a VB6 program
reading from an Access database?
The query looks like this:
STR_TEMP = "SELECT LABELS.BIN, LABELS.ROUTE, LABELS.STOP, " & _
"FROM LABELS " & _
"WHERE (((LABELS.PRINT_TYPE) = """ & "STORE" & """)) " & _
"ORDER BY LABELS.ROUTE, LABELS.STOP DESC, LABELS.BIN;"
Thanks
Steve