1 is 5 in record order 
Author Message
 1 is 5 in record order

a ski race asociation has the fastest racer run number 5 in the next
race. looks kike this.

 no. 1 - races no.   5
       2                    4
       3                    3
       4                    2
       5                    1
        from 6 on everyone races in order of last race finish.
any ideas on how to code a sort of records based on the time number
field to reflect this order.
thanks - crazy in milwaukee



Sat, 08 Jul 2000 03:00:00 GMT  
 1 is 5 in record order

Quote:

> a ski race asociation has the fastest racer run number 5 in the next
> race. looks kike this.

>  no. 1 - races no.   5
>        2                    4
>        3                    3
>        4                    2
>        5                    1
>         from 6 on everyone races in order of last race finish.
> any ideas on how to code a sort of records based on the time number
> field to reflect this order.
> thanks - crazy in milwaukee

If [Previous Finish Position] < 6 Then
     Select Case [Previous Finish Position]
          Case 5
               [Starting Position] = 1
          Case 4
               [Starting Position] = 2
        ....
    End Select
Else
    [Starting Position] = [Previous Finish Position]
End If

You could spend some time and work out an algorithm to calculate the
[Starting Position] from the [Previous Finish Position] and eliminate
the Select Case... stuff, but there are only 5 cases to worry about, and
the debugging is easier....

HTH,
--

    National Library of Canada
    Anti spam note: Do not Reply without correcting the address
        **  None of the above has any official status  **



Sun, 09 Jul 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. I am trying to update a record, i am not using data control

2. I am trying to update a record, i am not using data control

3. I am getting duplicate records, I mean everything is duplicate even Access record number

4. Written Records out of order

5. order of records in recordset

6. record order

7. records out of order opening Access database!!!

8. Only 1 record after order by?

9. DB Record Insertion in Sort Order?

10. Access database files record order

11. order of records on HD

12. VB6/ADO: Ordering records for datagrid.

 

 
Powered by phpBB® Forum Software