Results 1 to 4 of 4
  1. #1
    Rustin788 is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Mar 2014
    Posts
    47

    Crosstab Using A Set Price

    Hey,



    I am trying to create a crosstab that will show prices for various products. The price is set; however, throughout the year the price might change and I want to be able to show each of those numbers. So I guess I'm trying to find a way for access to treat these prices like a text value for a crosstab. Is this possible? If not, any other ideas would help greatly.

    Thanks

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    yes. Make a query that retrieves all the prices/stuff you want. save.
    Use the query wizard and select crosstab qry wizard,
    pick the qry made above,
    pick your row items
    then column items
    then for prices , choose FIRST
    save crosstab.

  3. #3
    Rustin788 is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Mar 2014
    Posts
    47
    That is what I currently have. All of the sort options limit me to just one price per item per year. The query is set up like below. I want be able to see both prices in the cross tab.

    Year Customer Stock Code Price
    2014 Nike JL-M943 21.5
    2014 Nike JL-M943 22


    Thanks for taking a look.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    Need another field that will uniquely identify each record within each year, such as month or a sequential number for all records within each year and use that field as Column Header.

    An alternative is: http://allenbrowne.com/func-concat.html
    Last edited by June7; 09-02-2014 at 03:38 PM.
    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.

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

Similar Threads

  1. Item without price, or duplicate price
    By Auto in forum Reports
    Replies: 5
    Last Post: 07-29-2013, 09:46 PM
  2. Select the last price in a day
    By 12345678 in forum Queries
    Replies: 1
    Last Post: 05-11-2012, 02:08 PM
  3. Set Up Price Tables
    By Jo22 in forum Database Design
    Replies: 5
    Last Post: 02-12-2012, 12:34 PM
  4. Overall price paid
    By MFS in forum Reports
    Replies: 1
    Last Post: 07-02-2011, 07:19 PM
  5. Look up price
    By matt4003 in forum Queries
    Replies: 7
    Last Post: 12-28-2009, 02:19 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