Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2022
    Posts
    21

    Exclamation Chart not updating correctly with query

    Hey all,



    I have connected my chart via a query and it is not counting correctly. I have 2 different columns which either say 5555555/55 or Indirect Labor, now my query does a fine job of splitting that up but my chart seems to count the total records instead of the total of the keywords for a specific user. How can I fix this?

    You can see here it is counting the total records instead of the total keywords...Attachment 47512

    You can see here how the data is split into two columns so the query seems ok?Attachment 47513

    These are the queries to split the data...

    realORDERS: IIf(InStr([myBarcode],"Indirect")>0,"","Order")


    realINDIRECT: IIf(InStr([myBarcode],"Indirect")>0,"Indirect","")

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,972
    You expect chart to show 4 Indirect and 3 Order?

    Should probably use a CROSSTAB for the chart RowSource.

    TRANSFORM Count(*) AS [Count]
    SELECT Table1.myName
    FROM Table1
    GROUP BY Table1.myName
    PIVOT IIf(InStr([myBarcode],"Indirect")>0,"Indirect","Order");
    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
    Join Date
    Mar 2022
    Posts
    21
    Thank you, works.

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

Similar Threads

  1. Replies: 11
    Last Post: 12-25-2015, 02:41 PM
  2. Limit chart to date range , Chart isnt updating .
    By fluffyvampirekitten in forum Access
    Replies: 5
    Last Post: 06-30-2015, 12:27 AM
  3. Updating a chart with a button
    By kentclub in forum Access
    Replies: 3
    Last Post: 01-03-2015, 08:57 PM
  4. Replies: 1
    Last Post: 11-14-2013, 01:31 PM
  5. Table Not Updating Correctly
    By wildthingcg in forum Database Design
    Replies: 8
    Last Post: 09-15-2011, 04:34 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