Results 1 to 3 of 3

Thread: Customer Browser Application

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Location
    Zirconia,NC
    Posts
    1

    Unhappy

    I've created my own customer browser application but would like to apply a sort button on it. I can't seem to find any help on how to sort the database. Can you recommend a link?

    By the way you have the best tutorial I've ever seen and I've been thru a lot in the past year. Keep up the good work.

  2. #2
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844
    Are you using DAO or ADO? Are you using SQL statements to get your data?

  3. #3
    Randalf the Red honeybee's Avatar
    Join Date
    Jun 2000
    Location
    off others' brains
    Posts
    4,345

    Well ....

    Whichever method you use to access your database, you have basically two ways to sort the data.

    One way is while retrieving records into the recordset you can frame the query with an 'Order By' clause to have the records sorted before they are sent to the recordset.

    Another way is if you already have a recordset, use its .Sort method to sort the records in the recordset.

    The first method is useful if you don't need to re-sort your data again and again. But if you are allowing the user to select and later change the order of sorting I believe you are better off with the second method.

    I am not a complete idiot. Some parts are still missing.
    Check out the rtf-help tutorial
    General VB Faq Thread
    Change is the only constant thing. I have not changed my signature in a long while and now it has started to stink!
    Get more power for your floppy disks. ; View honeybee's Elite Club:
    Use meaningfull thread titles. And add "[Resolved]" in the thread title when you have got a satisfactory response.
    And if that response was mine, please think about giving me a rep. I like to collect them!

Posting Permissions

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



Click Here to Expand Forum to Full Width