Results 1 to 4 of 4
  1. #1
    jice89 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Mar 2011
    Posts
    7

    Sort Query


    I have a table with all distinct IDs but similar class names. I need to build a query that will display each distinct class name. With everything I do, I always get a new record in the query for each ID name. I am assuming this is a relatively simple thing to do and I am just overlooking something. Please Help

    Example...
    Class ABCD is offered on Monday, Wednesday or Fridays. I have three records in the original table for Class ABCD. For my query, I only want class ABCD to show up once.

  2. #2
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    Without knowing all the fields and what you are attempting to do in your query, a simple answer is not possible. It may be that all you have to do is create an aggregate query and group the results on the class name. We need more information. Field names and what are you trying to accomplish.

    Alan

  3. #3
    jice89 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Mar 2011
    Posts
    7

    sort query

    In my tblClasses, I have an ID field, className, classTime, and ClassDay. I want to build a form in order to enroll a student in the class. I would like to be able to view the classes in a drop down menu in the form. The reason I have several IDs with the same className is because the classes are offered at different times. I would like the enroll form to offer the choice of className in the drop down box and then based on the class they choose, another drop down box would have the available times to choose to take that class. Is that enough information, or do you need more or different information? Thanks for your help.

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Just saw your post and would offer the following advice.

    I think you need to include the concept of a Class_Session where there could be 1 or more Class_sessions for a given Class. For example, assume a class called Chemistry 101.
    It is offered Mon, Wed, Fri
    It is also offered Mon Thu Fri
    It is available as evening Class Mon and Tues.

    Same Class (Subject) different sessions.

    Had a similar problem years ago when dealing with presentations. Same presentation, given by different People at different times ( we used the concept of session to resolve the issue).

    Good luck

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

Similar Threads

  1. Replies: 3
    Last Post: 04-19-2011, 06:41 PM
  2. Double Sort?
    By anoob in forum Access
    Replies: 1
    Last Post: 01-18-2011, 12:41 AM
  3. Sort by even or odd number
    By sammer021486 in forum Queries
    Replies: 7
    Last Post: 11-23-2009, 12:30 PM
  4. How to sort by three sort orders
    By captgnvr in forum Access
    Replies: 4
    Last Post: 11-09-2009, 07:30 AM
  5. Sort
    By mmp97 in forum Access
    Replies: 1
    Last Post: 12-18-2008, 10:14 PM

Tags for this Thread

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