Results 1 to 4 of 4

Thread: Table Sorting Problem

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Location
    Philippines
    Posts
    85

    Post

    I had this button in my form and upon clicking on it the Recordset on the grid sort the names field in ascending order. The problem is that is does not reflect the actual table in Access upon sorting the recordset. I've wanted to reflect the changes made in the recordset and the table as well. This is the basis of my data report, changes in the actual table.

    TIA.

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Sort order in the actual table is usually irrelevant, because for reports, tables are interchangeable (up to a point) with query recordsets.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Location
    Philippines
    Posts
    85

    Table sorting

    Hi again,

    Can you give me an example of it? Because if I have three fields to sort in a table then I will generate three kinds of data report. if the actual changes on the recordsets reflect also in the table, then I will only produce one kind of generic data report. I would to minimize of creating three kinds of commands in the dataenvironment and data report with only one command and data report.

    I'm new in VB . please help....

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    This should work to use Surname as the primary sort and FirstName as the secondary sort.
    Code:
    SELECT Surname, FirstName, PhoneNumber FROM People ORDER BY Surname, FirstName
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

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