Results 1 to 4 of 4
  1. #1
    baba is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Nov 2011
    Posts
    43

    Graph1.SeriesCollection works in form and fails in report

    Runtime error '438':
    Object doesn't support this property or method

    Graph1.SeriesCollection(1).Points(j).Interior.Colo r = RGB(128, 100, 162)

    However,it works in form but causing error in report in Private Sub Report_Load() .

    Could you please help !

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Try it in the Format event of whatever section the chart is in.
    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
    baba is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Nov 2011
    Posts
    43
    I have placed my barchart in report header and when i run the report,it goes directly into
    Sub Report_Load() and is not entering the code that I have placed inside Sub ReportHeader_Format .Please advise.

    Actually it works when i run it through vba code by a button click. It works as expected. Thanks for the help !!!

  4. #4
    mbschops is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2012
    Posts
    1
    Try using the on paint event of the header section, it worked for my charts in the detail section!

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

Similar Threads

  1. Form works, Subform gets error
    By jlclark4 in forum Forms
    Replies: 9
    Last Post: 01-03-2011, 09:24 AM
  2. search criteria in a form fails!
    By maxbre in forum Programming
    Replies: 2
    Last Post: 12-01-2010, 06:21 AM
  3. Code works in full, fails in Runtime
    By stephenaa5 in forum Programming
    Replies: 3
    Last Post: 09-14-2010, 12:30 PM
  4. Replies: 3
    Last Post: 09-09-2010, 08:02 AM
  5. Printing form: image fails to update
    By stellar0645 in forum Forms
    Replies: 6
    Last Post: 02-04-2010, 11:41 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