Results 1 to 3 of 3
  1. #1
    tutlay is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Feb 2014
    Posts
    4

    Reorganize dataset OR is there another way using a possibly long and complex query?

    I have a dataset where a customer has a unique ID but have multiple orders. Therefore, each customer ID has multiple order numbers. That's understandable and that makes sense.

    My problem lies in the fact that the dataset is organized by order numbers -- NOT by customer ID. So, it looks something like this (there are way more columns than the five shown here).

    Order# CustomerID OrderDate Orderqty Paid
    1 10011 8/17/2002 7 Yes
    2 10015 1/23/2009 22 Yes
    3 10011 3/30/2003 11 Yes
    4 10022 9/01/2005 28 Yes
    5 10011 4/01/2005 4 Yes

    The dataset has about 3,000 CustomerID with over 7,000 Order#. I need to analyze this data based on CustomerID so my gut tells me to first re-organize this set by CustomerID. Is that true? Or is there a way to do my analyses without doing this?



    I'm more familiar with SQL but have [mildly] worked with visual basic and macros in Access 2010/2013 before.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    What kind of analysis?

    Record order in table is irrelevant. Use a query and set whatever order you want.

    Build a report using Grouping & Sorting features with aggregate calcs in group and report header/footer sections. This will allow display of detail records and summary calcs.

    BTW, should not use spaces or special characters/punctuation (underscore is exception) in naming convention.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    tutlay is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Feb 2014
    Posts
    4
    Thank you, June7. I did just that and it worked for the most part...

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

Similar Threads

  1. Query Help, Possibly DLookup?
    By UTLee in forum Access
    Replies: 36
    Last Post: 12-10-2013, 05:17 PM
  2. Replies: 1
    Last Post: 02-26-2013, 01:45 PM
  3. Replies: 3
    Last Post: 03-20-2012, 10:31 AM
  4. Newb question (but possibly complex)
    By MavisCruet in forum Database Design
    Replies: 3
    Last Post: 11-29-2011, 07:16 AM
  5. Reorganize fields
    By pollux in forum Queries
    Replies: 1
    Last Post: 07-15-2010, 03:04 PM

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