O
oliaccount via AccessMonster.com
Hi
I have a query that selects the middle characters of a postcode:
numbers: IIf(IsNull([postcode]),Null,Val(Mid([postcode],3)))
And then splits the resulting number:
code right: IIf(IsNull([numbers]),Null,Val(Left([numbers],1)))
This works fine until I tell access to sort acending on the second field
(which is the whole point), when it asks me to define numbers.
I have a query that selects the middle characters of a postcode:
numbers: IIf(IsNull([postcode]),Null,Val(Mid([postcode],3)))
And then splits the resulting number:
code right: IIf(IsNull([numbers]),Null,Val(Left([numbers],1)))
This works fine until I tell access to sort acending on the second field
(which is the whole point), when it asks me to define numbers.