Sorting recordsets

databases United Kingdom
  • 19 years ago

    I know this is simple and I've done it before but it's been a while and I can't remember how to do it...
    I've connected various fields (text boxes) to MS Access, so I'm reading MS Access records using a data control, and now I'm trying to sort the records that have been read in ascending/descending order. Can anyone tell me what the syntax for it is?


    "datBusiness.Recordset.Sort" doesn't quite do the job. There's something missing and you know how descriptive and helpful Microsoft's MSDN help is...


    Thanks in advance.

  • 19 years ago

    Can't you just use an SQL Statement with an Order By clause?

  • 19 years ago

    I know that's another way of doing it, but I have difficulty using SQL and I don't know how to append SQL code into my VB code.

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Computer science education cannot make anybody an expert programmer any more than studying brushes and pigment can make somebody an expert painter” - Eric Raymond