To arrange a list in my Combo Box I use the following in my Query:
xyz: IIf([QtyRange] Is Null,0,Val(Mid(([QtyRange]),37,3)))
[QtyRange] [xyz]
0
Price Each effective for quantities 1 to 24 pieces 1
Price Each effective for quantities 25 to 49 pieces 25
Price Each effective for quantities 50 to 99 pieces 50
Price Each effective for quantities 100 to 249 pieces 100
Price Each effective for quantities 250 to 499 pieces 250
While the above works for now if a new entry is added like:
[QtyRange] [xyz]
Price Each for 1 to 24 pieces 0
Price Each for 25 to 49 pieces 0
The sort order fails as there is no 37th character.
How would I get the first Long Integer in the String regardless of its location within the String to arrange my list?
How would I get the text portion preceding the Integer?
Thanks,
UncleG
xyz: IIf([QtyRange] Is Null,0,Val(Mid(([QtyRange]),37,3)))
[QtyRange] [xyz]
0
Price Each effective for quantities 1 to 24 pieces 1
Price Each effective for quantities 25 to 49 pieces 25
Price Each effective for quantities 50 to 99 pieces 50
Price Each effective for quantities 100 to 249 pieces 100
Price Each effective for quantities 250 to 499 pieces 250
While the above works for now if a new entry is added like:
[QtyRange] [xyz]
Price Each for 1 to 24 pieces 0
Price Each for 25 to 49 pieces 0
The sort order fails as there is no 37th character.
How would I get the first Long Integer in the String regardless of its location within the String to arrange my list?
How would I get the text portion preceding the Integer?
Thanks,
UncleG