Results 1 to 7 of 7
  1. #1
    vicky464 is offline Novice
    Windows Vista Access 2007
    Join Date
    Sep 2010
    Posts
    23

    Sorting Blank Records


    I have a report that lists classes and satisfaction scores for each class. To everyone's surprise, there were a series of classes that had no name, which show up at the top of the list as one item (grouped) so in the report I renamed the whole group of blank classes with a more appropriate name, using an IIF function. I would love to have the report sort in alpha order with this class sorted among the others but it remains at the top of the list because Access still treats it as Blank and the name I assigned is not sorted. Is there a way to get it to sort with the other names? THanks!

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Use a query for your RecordSource of the Report and do the naming in the query. Then sort on that field.

  3. #3
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    ..... To everyone's surprise, there were a series of classes that had no name, ........
    I am wondering why are there classes with no names? This sounds like a design flaw. Or at least a validation problem. Or maybe you are getting a cartesian product from your query....





  4. #4
    vicky464 is offline Novice
    Windows Vista Access 2007
    Join Date
    Sep 2010
    Posts
    23
    Steve - the data is imported from excel spreadsheets, so I dont really have a way to validate it before it is dumped in the database; do I?

    Rural - I will give it a try, my report is based on a crosstab query, which is based on a select query. I will see what I can figure out. Thanks.

  5. #5
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Let us know how you make out.

  6. #6
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    Quote Originally Posted by RuralGuy View Post
    Let us know how you make out.
    or as the Aussie's would put it:

    Let us know how you get on...

    (or is that from the UK?)

  7. #7
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Steve - the data is imported from excel spreadsheets, so I dont really have a way to validate it before it is dumped in the database; do I?
    Probably not without a lot of work (and a lot of code). Do you know how it is being imported?

    What happens when the spreadsheet is imported? Is the data put in a temp table, then moved to other tables? Is the spreadsheet data (flat file) being split up to a normalized structure?

    If the class name is blank, how is the class name determined for a given record?

    After the spreadsheet import, could you run a few update queries to fill in the class names?
    If there are a couple of fields that would determine the class name, code could be used to loop thru a recordset to update the class name.

    Sorry for all the questions. Just trying to understand the process......

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Sorting subform records
    By Remster in forum Forms
    Replies: 4
    Last Post: 11-17-2010, 10:39 AM
  2. Displaying Records & Sorting Help
    By raceware in forum Access
    Replies: 1
    Last Post: 09-29-2010, 06:35 AM
  3. Sorting records
    By Samu77 in forum Access
    Replies: 1
    Last Post: 09-13-2010, 10:40 PM
  4. Sorting Records
    By sfoot0309 in forum Reports
    Replies: 1
    Last Post: 02-05-2010, 05:50 PM
  5. Sorting records
    By BravoEcho in forum Queries
    Replies: 0
    Last Post: 06-23-2009, 04:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums