Results 1 to 4 of 4
  1. #1
    SierraJuliet's Avatar
    SierraJuliet is offline Competent Performer
    Windows 7 64bit Access 2013 64bit
    Join Date
    Dec 2017
    Location
    Earth
    Posts
    211

    Display "No Data" for Charts with No Data

    To all the Access ninjas...

    As the title suggests, does anyone know a 'simple' way to display "no data" on a chart when there is no data present, instead of the chart being blank?



    Thanks!

  2. #2
    Micron is offline Very Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    I have long refrained from using Access charts. I suppose the report OnNoData event doesn't apply? If it does, you could simply hide the chart control using that event.
    If not, maybe a hidden textbox on the report that uses DSum on your data. If 0, then hide the chart control. I'd suggest the OnCurrent event for the report.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    SierraJuliet's Avatar
    SierraJuliet is offline Competent Performer
    Windows 7 64bit Access 2013 64bit
    Join Date
    Dec 2017
    Location
    Earth
    Posts
    211
    Good idea. I will use a hidden field that on strSQL = 0 will make visible. Thanks Micron.

    P.S. The chart is on a tab page (no sub form or report).

  4. #4
    Micron is offline Very Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    You're welcome. Hope it works.

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

Similar Threads

  1. Replies: 2
    Last Post: 05-04-2017, 01:10 AM
  2. Replies: 13
    Last Post: 12-12-2016, 12:26 AM
  3. Replies: 14
    Last Post: 08-23-2014, 12:35 PM
  4. Replies: 9
    Last Post: 08-19-2013, 03:00 PM
  5. Replies: 1
    Last Post: 08-23-2012, 08:32 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