Results 1 to 6 of 6
  1. #1
    pbaxter is offline Novice
    Windows Vista Access 2003
    Join Date
    Jan 2010
    Posts
    3

    Chart doesn't show data

    I have a simple chart on a page of a tab control. The chart's data comes from a query.
    when the form opens the chart can't be seen. If I
    1) Move to another tab page and back again, or
    2) Click on the chart object and then click somewhere else
    then the chart magically appears.

    How can I get the chart to show when the form opens?

  2. #2
    Rainlover's Avatar
    Rainlover is offline Expert
    Windows XP Access 2003
    Join Date
    Nov 2009
    Location
    Queensland Australia
    Posts
    691
    This is a Windows Vista and a Windows 7 problem.

    At a guess I would say that it would work fine in Windows XP.

    Try adding some code to move the Focus from the main Form to the Chart and back again.

    You should not have to do this but I have experienced a similar problem with Windows 7.

    Please let me know the outcome.

  3. #3
    SoftwareMatters is offline Access VBA Developers
    Windows XP Access 2003
    Join Date
    Mar 2009
    Location
    Dorset
    Posts
    274
    If what Rainlover has said doesn't work. Try doing a requery on the chart once the page has loaded.

  4. #4
    Rainlover's Avatar
    Rainlover is offline Expert
    Windows XP Access 2003
    Join Date
    Nov 2009
    Location
    Queensland Australia
    Posts
    691
    Software matters

    Yes you need to that as well, But on my 7 Machine I still need to swap the focus around.

    I am almost prepared to call this a bug. But not yet.

  5. #5
    pbaxter is offline Novice
    Windows Vista Access 2003
    Join Date
    Jan 2010
    Posts
    3
    Thanks, all.
    Shifting focus by code (using the Activate event) didn't work directly. But putting a timer on the form and delaying the code-driven focus shift by 300 msec did work. Yecchh.
    I'm going to try driving the focus shift by the OnUpdated event of the OLE chart and see if that works any better.

  6. #6
    pbaxter is offline Novice
    Windows Vista Access 2003
    Join Date
    Jan 2010
    Posts
    3

    Smile Problem solved

    Using the OnUpdate event of the chart to shift focus solved the problem:

    Private Sub ChartOLE_Updated(Code As Integer)
    cboFind.SetFocus
    End Sub


    There's a short delay after the form becomes visible where the invisible chart has focus handles. Then focus shifts to cboFind and the chart appears.

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

Similar Threads

  1. Can't get new field to show in my data entry form
    By Suzie in forum Database Design
    Replies: 19
    Last Post: 12-21-2009, 03:48 PM
  2. Data won't show up in table field
    By texzen123 in forum Forms
    Replies: 3
    Last Post: 11-26-2009, 11:20 AM
  3. Replies: 9
    Last Post: 03-24-2009, 09:19 PM
  4. Replies: 0
    Last Post: 08-30-2006, 02:50 AM
  5. All Data wont show
    By Wrangler in forum Queries
    Replies: 1
    Last Post: 01-02-2006, 03:27 AM

Tags for this Thread

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