Results 1 to 2 of 2
  1. #1
    jj1 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2014
    Posts
    128

    query showing different results when moved to chart in report

    I am using a query




    SELECT qry.txtRootCause, Count(tbl.txtRootCause) AS CountOftxtRootCause
    FROM tblA AS tbl, qryRootCause AS qry
    WHERE (((tbl.txtRootCause)=[qry].[atnRootCauseID]) AND ((tbl.dateIdentified) Between [Forms]![frmStratificationOfRootCauses]![startDate] And [Forms]![frmStratificationOfRootCauses]![endDate]) AND ((tbl.txtDepartment)=[Forms]![frmStratificationOfRootCauses]![cboDepartment] Or [Forms]![frmStratificationOfRootCauses]![cboDepartment] Is Null))
    GROUP BY qry.txtRootCause, tbl.txtRootCause
    HAVING (((Count(tbl.txtRootCause)) Is Not Null) AND ((tbl.txtRootCause) Is Not Null))
    ORDER BY Count(tbl.txtRootCause) DESC;


    But the problem I am having is when i try making chart with this query on report. It works fine for the first time and then it doesn't work.

  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 does 'first time' mean? You open report and graph works then close report and reopen and graph does not work?

    I analyze graph issues best when I can work with data. If you want to provide db, follow instructions at bottom of my post.
    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. Only display top 6 results on report chart
    By wlkr.jk in forum Reports
    Replies: 5
    Last Post: 06-16-2014, 02:54 PM
  2. Not all results showing in query
    By lewis1682 in forum Queries
    Replies: 3
    Last Post: 09-08-2013, 03:16 PM
  3. Chart is not showing up on the report.
    By Guntar in forum Programming
    Replies: 1
    Last Post: 12-19-2012, 03:11 PM
  4. Replies: 1
    Last Post: 03-10-2012, 03:22 PM
  5. Query showing unexpected results
    By johnmerlino in forum Queries
    Replies: 30
    Last Post: 10-25-2010, 07:08 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