Results 1 to 2 of 2

Thread: SQL and VB

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Posts
    4

    Question

    I am fairly new to VB and SQL....I am wanting to sort data in a data grid (bound to ADO control) by various columns ( i.e. like in MS Access....Rt. Click on column)

    First is it possible to set up the Data Grid to do this and how?

    If now how can I use SQL to Sort the columns?

    Thanks

  2. #2
    Hyperactive Member barrk's Avatar
    Join Date
    Sep 2000
    Location
    My own little world
    Posts
    274
    The easy way is to specify the column order and column name in your SQL statement:

    "Select tp as [Test Point], groupnum as [Group Number], mantype as Manuever from mytable"

    This will put them into the grid in the order selected.


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