Results 1 to 3 of 3
  1. #1
    Benj is offline Advanced Beginner
    Windows 7 32bit Access 2016
    Join Date
    May 2018
    Posts
    33

    Graph


    Good day! I've placed a Graph in the Main form, unfortunately, the criteria I've used [Forms]![Main]![ID], shows all the records. I want the graph to show only for the current record.
    SELECT Collection.ID, Collection.Number_of_Tubes, Collection.Collection_Date FROM Collection WHERE (((Collection.ID)=[Forms]![Main]![ID])) ORDER BY Collection.Collection_Date;

    Thanks in Advance!

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    does the query work with the criteria?
    make sure the query PARAMETERS have your path: [Forms]![Main]![ID], as long integer

    if so, run the query,
    copy a few records from the recordset,
    open the chart,
    select the chart object
    does the ROW SOURCE have the correct query

    dbl-click the chart object
    the chart AND datasheet should show, if not, menu:view, datasheet
    select the top left corner of the grid and delete all records,
    paste your result data in the grid.
    close the report and save.

    see if that works.

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    My graph RowSource references textbox with identifier. Example:

    SELECT Size, Pass, Hi, Lo FROM GraphBMD WHERE LabNum=[tbxLabNum] ORDER BY Size;
    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. Replies: 24
    Last Post: 07-28-2015, 10:50 AM
  2. Graph
    By mavisyew in forum Reports
    Replies: 8
    Last Post: 08-31-2014, 07:15 PM
  3. Replies: 6
    Last Post: 02-29-2012, 03:13 AM
  4. Graph
    By Ray67 in forum Reports
    Replies: 8
    Last Post: 10-15-2011, 10:38 AM
  5. Replies: 3
    Last Post: 01-10-2011, 10:31 AM

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