Results 1 to 6 of 6
  1. #1
    klauriens is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2011
    Posts
    4

    Question How could I query msaccess table into this sequence: ?

    How could I query msaccess table into this sequence: ?

    Code:
    I have data in this order |             I want data in this order
               A                               |               A
               A                               |                                                          B
               A                               |                                                          C
               A                               |                                                          A
               B                               |               B           
    B                                                                          |               C
               B                               |               A
               C                                                                          |               B
               C                               |               A
    I want to retain all the data so duplicate wizard cant help me. The purpose of this is to see the records of A,B,C first instead of seeing all records of As, Bs and Cs. Help me pls. A bit urgent. Thanks, LA
    Last edited by klauriens; 04-27-2011 at 08:34 AM. Reason: shown diffrently

  2. #2
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    You would need some other field in your table that holds a value that is the same for each group of A, B, C. For example

    Customer1|A
    Customer1|B
    Customer1|C
    Customer2|A
    Customer2|B
    Customer2|C

  3. #3
    klauriens is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2011
    Posts
    4
    @jzwp11
    Thanks for the fast reply. Actually, there is no other field in my table that will differentiate the records as what you have shown. Is there no other way to achieve this just by only looking on the target column? I want to see the records of that column in their first instance, then second, then third...consecutively.

    I will still keep your post in mind if I could make a workaround.
    Thanks, pls reply again.
    LA

  4. #4
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    I want to see the records of that column in their first instance, then second, then third...consecutively
    Do you have a date field that is associated with first instance second instance etc.?

  5. #5
    klauriens is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2011
    Posts
    4
    No. The date in the table is all the same. But you give me an idea in your first reply. How could I make this possible:

    Code:
    My_Data|Check_Instance
    A                          |1
    A                          |2
    A                          |3
    A                          |4 
    B                          |1
    B                          |2
    B                          |3
    C |1
    C                          |2
    How could I make a column that will check the instance of the other column. By this, I could simply sort the "Check_Instance" column by ascending and the "My_Data" will be arrange accordingly as I planned to.

    I think I will post another for this.

    Thanks,
    LA

  6. #6
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    You should be able to just modify the order in the query; if you look at the query in SQL view it would look something like this

    SELECT my_data, check_instance
    FROM yourtablename
    ORDER BY check_instance ASC

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

Similar Threads

  1. Learn MSAccess by playing MSAccess Jeopardy
    By pkstormy in forum Sample Databases
    Replies: 4
    Last Post: 11-17-2016, 07:27 AM
  2. Equivalent MsAccess Query
    By noviceUser in forum Access
    Replies: 2
    Last Post: 09-18-2010, 06:03 AM
  3. Reverse Sequence of Numbers
    By OpsO in forum Queries
    Replies: 1
    Last Post: 08-12-2010, 06:05 PM
  4. MSACCESS Query with calculations?
    By Masterfinn in forum Queries
    Replies: 10
    Last Post: 02-24-2010, 10:51 AM
  5. MSACCESS Query
    By saa18 in forum Access
    Replies: 0
    Last Post: 11-14-2008, 05:12 AM

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