Help!
I have an alphanumeric, 10-character text field defined. It contains bond numbers which may be anywhere from 1 to 10 characters in length.
The problem is the sort order. If I have bond numbers A1,
A2, A11,A32, and A200 I would expect them to sort in this fashion.
However, Access sorts in the following order:
A1, A11, A2, A200, A32, which is not what I want.
In Oracle, there is a pad function, which would allow me to pad with blanks all unused bytes in the 10-character field. So, in Access or VBA, is there a way to pad these or otherwise get be stored as a 10-character field so these would sort in the expectded order?
Many, many thanks!
I have an alphanumeric, 10-character text field defined. It contains bond numbers which may be anywhere from 1 to 10 characters in length.
The problem is the sort order. If I have bond numbers A1,
A2, A11,A32, and A200 I would expect them to sort in this fashion.
However, Access sorts in the following order:
A1, A11, A2, A200, A32, which is not what I want.
In Oracle, there is a pad function, which would allow me to pad with blanks all unused bytes in the 10-character field. So, in Access or VBA, is there a way to pad these or otherwise get be stored as a 10-character field so these would sort in the expectded order?
Many, many thanks!