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

    Create New Table with unique customer rows

    I am trying to take a table that looks like this:
    Customer Name Fruit
    Customer A Apples
    Customer A Bananas
    Customer B Pears
    Customer B Apples
    Customer C Pears

    and create a table that looks like this:


    Customer Name Apples Bananas Pears
    Customer A Apples Bananas
    Customer B Apples Pears
    Customer C Pears

    I think this is relatively simple but don't know the syntax to create this table. Can anyone help?

  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,646
    How many different fruits are there? Review http://www.datapigtechnologies.com/f.../crosstab.html

    Otherwise, what you want is not easily done. A conventional CROSSTAB query requires 3 fields.
    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
    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,850
    Your proposed structure looks like a spreadsheet. If you really want to use a database (Access) to store and retrieve your data you should learn more about database and how it differs from spreadsheet.
    Here is a tutorial about designing a database.

    Good luck.

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

Similar Threads

  1. Replies: 6
    Last Post: 12-11-2013, 09:27 PM
  2. Replies: 1
    Last Post: 07-30-2013, 02:19 PM
  3. Replies: 1
    Last Post: 05-15-2012, 05:05 PM
  4. Replies: 3
    Last Post: 05-15-2011, 08:40 AM
  5. Selecting Unique SETS of rows in Access Query
    By dalessandroh in forum Queries
    Replies: 0
    Last Post: 11-09-2010, 10:42 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