Results 1 to 2 of 2

Thread: Displaying most recent record at top of Grid

  1. #1
    Pete Dumont Guest

    Displaying most recent record at top of Grid

    MY GRID SHOWS ALL MY RECORD IN THE ORDER THEY WERE ENTERED. ID LIKE TO SHOW THE MOST RECENT RECORDS FIRS, AND THEN DESCEND TO THE OLDER RECORDS, BASICALLY ,i WANT TO FLIP THE ORDER THE RECORDS ARE DISPLAYED. HOW DO I DO THIS?

  2. #2
    Mark Guest

    Displaying most recent record at top of Grid (reply)

    Pete,

    The only way to do this would be if your records had a sequence number or Timestamp that increased for every record. Then set:

    dbSQL = "Select * from YourTableName Order By TIME_FIELD DESC" or

    dbSQL = "Select * from YourTableName Order By ID DESC"

    Do you have such a field? You'll need one!

    Mark.


    ------------
    Pete Dumont at 1/11/00 9:55:53 AM

    MY GRID SHOWS ALL MY RECORD IN THE ORDER THEY WERE ENTERED. ID LIKE TO SHOW THE MOST RECENT RECORDS FIRS, AND THEN DESCEND TO THE OLDER RECORDS, BASICALLY ,i WANT TO FLIP THE ORDER THE RECORDS ARE DISPLAYED. HOW DO I DO THIS?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •