Results 1 to 5 of 5
  1. #1
    DaveT99 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Mar 2018
    Posts
    76

    Help with Query to show in row

    Hello


    I am trying to create a cost tracking table & query
    have created a table with Item_Id, Date, Latest Price

    so eventually I will have a table of dates and latest price for item1, 2, 3, etc

    How is the best way to show data in a single row the price trend for a Item 1 (row 1), Item 2 row 2, etc, can this be done in a query?

    so Rew 1 would show Item 1, then cost (date1), cost (date2), cost (date 3) etc

    I tried a cross tab query but that didnt work

    Hope this is clear

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,522
    use a SINGLE RECORD form, bound to your query.
    user can see only 1 record at a time.

    but if you want to view them (not recommended) as ITEM1, cost1,date1, cost2,date2
    then use a CROSSTAB query.

    to use crosstab or TREND report/chart, you want data in a query as:
    ITEM1, DATE1, COST1
    ITEM1, DATE2, COST2
    ITEM2,DATE1, COST1
    etc

    the charts/trends read this type of query.

  3. #3
    DaveT99 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Mar 2018
    Posts
    76
    [QUOTE=ranman256;424758]use a SINGLE RECORD form, bound to your query.
    user can see only 1 record at a time.

    but if you want to view them (not recommended) as ITEM1, cost1,date1, cost2,date2
    then use a CROSSTAB query.

    to use crosstab or TREND report/chart, you want data in a query as:
    ITEM1, DATE1, COST1
    ITEM1, DATE2, COST2
    ITEM2,DATE1, COST1
    etc

    the charts/trends read this type of query.[/QUOTE

  4. #4
    DaveT99 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Mar 2018
    Posts
    76
    Thanks will try the cross tab again and if I fail will try the single record form

    Many thanks for your prompt reply
    Cheers

  5. #5
    DaveT99 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Mar 2018
    Posts
    76
    Thanks Mr Ranman............Managed 2nd time round using the CROSSTAB query. I had never used this function before

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

Similar Threads

  1. Replies: 18
    Last Post: 03-13-2017, 12:32 PM
  2. Replies: 3
    Last Post: 07-20-2014, 08:56 PM
  3. Replies: 4
    Last Post: 04-03-2014, 08:03 AM
  4. Replies: 3
    Last Post: 03-07-2013, 10:44 AM
  5. Replies: 3
    Last Post: 01-15-2013, 01:58 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