Results 1 to 2 of 2

Thread: do sorting

  1. #1
    Join Date
    Sep 2005
    Posts
    313

    Unanswered: do sorting

    Hi:

    In MS Access:
    in VBA code:


    I have a table called "ta"

    how to do sorting using the code?

    dim sql as string

    sql = "update [ta] order by [Name]"

    CurrentDb.Execute sql

    Are the above 2 sentences OK?

  2. #2
    Join Date
    Feb 2004
    Location
    One Flump in One Place
    Posts
    14,912
    Quote Originally Posted by accessman2
    Are the above 2 sentences OK?
    Nope. Check out this guys signature. Ordering is a presentation issue, not a storage one. You need to order output from queries not the storing of persistent data.

    HTH
    Testimonial:
    pootle flump
    ur codings are working excelent.

Posting Permissions

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