On Form Customer List I change on the SourceTableView SORTING("No.") for my list shows sort by "No.".
But when i lunch the form the number 12399 show before the number 124
That means you are on SQL and SQL by default sorts code-fields as text.
You can do 2 things:
1) change the property SQL "SQL Data Type" to Variant or Integer. But that means that ALL FIELDS where an "Item No." can be put must be changed. And remember that in some (like T37,T39) can also be put a G/L Account or FA,...
2) Better is to rename your items so they have the same lenght Like "12399","00124".
Regards,Alain Krikilion No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Comments
I changed mine to
SORTING(No.,Document Type) ORDER(Ascending)
and it worked straight away
You can do 2 things:
1) change the property SQL "SQL Data Type" to Variant or Integer. But that means that ALL FIELDS where an "Item No." can be put must be changed. And remember that in some (like T37,T39) can also be put a G/L Account or FA,...
2) Better is to rename your items so they have the same lenght Like "12399","00124".
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
another solution?
if i created one field integer with the value of "No." and i sort by this field.... ????
Thanks...
1) Unnecessary fields.
2) Unnecessary Keys.
3) Unnecessary Code to update the field every time a record is inserted.
I would prefer renaming the customers from 1 to 00000001 or C00000001 or something similar.
It's up to you...
That's the best solution!
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
viewtopic.php?f=23&t=29589