Order by in a form (1 Viewer)

radek225

Registered User.
Local time
Yesterday, 16:31
Joined
Apr 4, 2013
Messages
307
I have "order by" in a form: nz([kolejnosc], 9999]) - to have null field a the end not at the top.
kolejnosc it's a long field. form based on query (union all)

If I have records with (1,2,3,4,5,6,7,8,9) everything is ok but when I have "10" number then my sequence is (1,10,2,3,4,5,6,7,8,9). What should I do to achieve the correct sequence?
 

JHB

Have been here a while
Local time
Today, 01:31
Joined
Jun 17, 2012
Messages
7,732
It looks like your field type is text.
 

JHB

Have been here a while
Local time
Today, 01:31
Joined
Jun 17, 2012
Messages
7,732
Show some sample data, + the query for the form!
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 07:31
Joined
May 7, 2009
Messages
19,246
order by: Format(nz([kolejnosc], 9999), "0000")
 

Users who are viewing this thread

Top Bottom