Results 1 to 5 of 5
  1. #1
    Kirsti is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jan 2012
    Location
    New Zealand
    Posts
    172

    Change Series Name in Legend in Chart on Report


    Hi, I have a column chart on my report, and my legend contains 2 series.

    Currently they are: SumofHO and AvgofDays

    This isn't so meaningful to the end user, I would like to change them to be "Total Number of Offers Made" and "Average Days Taken to Offer".

    Is there a way I can do this (maybe using VBA)?

    Any help appreciated.

  2. #2
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Presuming that your row source is a query, you can rename the fields in the query. In front of the field in the query design, put the Total name you want and then a colon (. This will rename the columns/legend to whatever you want. I can't remember what is required when you have spaces, you may need to enclose the name in quotes.

  3. #3
    Kirsti is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jan 2012
    Location
    New Zealand
    Posts
    172
    Thanks Aytee,

    I have tried this, but because I'm calculating the total & the average of the fields in the report, I still get "SumOf" and "AvgOf" prefacing the series name, so I was hoping that there was a way to change the series name with VBA.

    Perhaps the only answer is to calculate the sum & avg in the query first.

  4. #4
    jimmywalks is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2012
    Posts
    1

    Change series name in chart

    Quote Originally Posted by Kirsti View Post
    Thanks Aytee,

    I have tried this, but because I'm calculating the total & the average of the fields in the report, I still get "SumOf" and "AvgOf" prefacing the series name, so I was hoping that there was a way to change the series name with VBA.

    Perhaps the only answer is to calculate the sum & avg in the query first.

    When you are selecting the series names in the chart wizard (either in the data or series boxes), double click the name of each field once you have dragged them into the box. This will pull up a menu of options (Sum, Avg, etc.) including a "None" option. Just choose "None" and the SumOf or AvgOf will not appear in your chart anymore.

  5. #5
    Kirsti is offline Competent Performer
    Windows 7 32bit Access 2003
    Join Date
    Jan 2012
    Location
    New Zealand
    Posts
    172
    Well, this is an old one that has bugged me for ages, and I have just figured it out! Probably not news to anyone else, but just in case...

    In the Row Source field of the Properties box, you can just change the series name, as you would in a SELECT query.

    i.e. change: SELECT[Field1],Sum([Field2]) AS [SumOfField2]) FROM [qry1]
    to: SELECT[Field1],Sum([Field2]) AS [MyFieldName]) FROM [qry1]

    So simple!

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

Similar Threads

  1. Piechart legend zero truncation
    By baba in forum Access
    Replies: 8
    Last Post: 11-29-2011, 09:49 PM
  2. Numeric or Date Series
    By OR1988 in forum Access
    Replies: 4
    Last Post: 10-03-2011, 07:44 AM
  3. Chart legend appears as date
    By Vronsky in forum Programming
    Replies: 0
    Last Post: 06-09-2011, 05:20 AM
  4. export a series of csvfiles
    By broecher in forum Programming
    Replies: 4
    Last Post: 09-23-2010, 09:10 AM
  5. Help Querying series
    By ktmchugh in forum Queries
    Replies: 20
    Last Post: 05-05-2009, 04:31 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