Sorting access 1.1 databases 
Author Message
 Sorting access 1.1 databases

How can you sort access databases in an alfa-numerical order.

In VB i get it like this:
C1
C10
C11
C2
C3

But I wouldt like it in this order:
C1
C2
C3
C10
C11

Can anyone PLEASE help me.

Carl Hansson



Thu, 05 Nov 1998 03:00:00 GMT  
 Sorting access 1.1 databases


Quote:

>How can you sort access databases in an alfa-numerical order.

>In VB i get it like this:
>C1
>C10
>C11
>C2
>C3

>But I wouldt like it in this order:
>C1
>C2
>C3
>C10
>C11

>Can anyone PLEASE help me.

>Carl Hansson

Hello Carl,

what you get _IS_ the alpha-numerical order. In your example you have
strings, not numeric values. They are compared from left to right.
If you want them to be sorted as desired, there are two possibilities:

Store the data as C01, C02, C03, C10, C11 (remember they are still
strings, and C100 will be sorted right after C10).
Or split the string into a textfield and a numeric field, and then sort
like this "... ORDER BY TextField, NumericField"

Hope it helps

Thomas

*****
If you are well, don't worry ... it will pass over.
*****



Sat, 07 Nov 1998 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Crystal 1.0 database error when connecting to Access 1.1 database

2. Using SQL To access Access 1.1 Database in VB

3. VB3 problems opening Access 1.1 database

4. Another pb with access 1.1 database.

5. Access 1.1 database structure printing utility

6. Help requested: VB corrupts access 1.1 database

7. read an old protect Access database (version 1.1) with VB5

8. Help - Access database migration 1.1 --> 3.5

9. Help - Access database migration 1.1 --> 3.5 problems

10. read an old protect Access database (version 1.1) with VB5

11. error 3041: try to load old database (Access 1.1/2.0)

12. VB3, Access 1.1 multi user access

 

 
Powered by phpBB® Forum Software