JimmyG
Registered User.
- Local time
- Today, 00:32
- Joined
- Aug 3, 2004
- Messages
- 37
My database contains a table of quotation details. One field specifies quantity. In most cases the higher the quantity quoted the lower the price offered. However in some circumstances a set price is offered regardless of quantity purchased.
If I set the datatype for the quantity field as a number I cannot type in ANY for quantity, but if I set the datatype as text, when I open a report controlled by the table the sorting of the numeric fields is wrong. The numbers are then treated as text so all the numbers beginning with 1 are kept together etc.
i.e.
100
1000
200
2000
instead of
100
200
1000
2000
Is there any way to keep the datatype as number with the exception of the word ANY or is there a way to keep the datatype as text and sort the records correctly in the report?
Thanks for any advice
Jim
If I set the datatype for the quantity field as a number I cannot type in ANY for quantity, but if I set the datatype as text, when I open a report controlled by the table the sorting of the numeric fields is wrong. The numbers are then treated as text so all the numbers beginning with 1 are kept together etc.
i.e.
100
1000
200
2000
instead of
100
200
1000
2000
Is there any way to keep the datatype as number with the exception of the word ANY or is there a way to keep the datatype as text and sort the records correctly in the report?
Thanks for any advice
Jim