Results 1 to 7 of 7
  1. #1
    ruthib4 is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2011
    Posts
    29

    Angry Programming a gauge

    Hi,

    I am trying to program a gauge type dashboard using vba with access, it is very basic but I am stuck when trying to modify a property of msgraph chart called "firstsliceangle" like this

    Firstsliceable = xxxx

    I am getting nothing, does anybody know how to do it?



    Please

  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,926
    What property are you modifying? Are firstsliceangle and firstsliceable declared variables?
    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
    ruthib4 is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2011
    Posts
    29

    Angry

    I have created a chart using MS graph in a form in access, "firstsliceangle" property is modifiable when double clicking in a pie chart' series point and go to options, you will see that there is a property called First Slice Angle.

    This property I need to change via VBA within an access vba rutine. I was told that I can do it just by|

    With me.graph(0)
    .firstsliceangle= myvariable
    En d with

    Did not work.

    Please help

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    Can you provide project for analysis so I don't have to build from scratch?
    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.

  5. #5
    ruthib4 is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2011
    Posts
    29

    Programming a gauge

    Sorry for the delay, attached you will find the project.
    What you will see is just the formatted graph simulating a needle, when you double click in the chart you will be able to edit the properties and then change the first slice angle.

    Any help would be much appreciated.

    Thansk in advanceAttachment 5334

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    First, need to set library reference in the VBA editor: Tools>References>Microsoft Graph 12.0 Object Library.

    I used the AfterUpdate event of textbox instead of Change with this code:
    With Me.Gráfico0.ChartGroups(1)
    .firstsliceangle = Me.txtvalor
    End With

    I also set Validation in the textbox: <=360

    The graph changes but not sure it is doing what you want.

    This article gave me some help: http://www.itechtalk.com/thread1189.html
    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.

  7. #7
    ruthib4 is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2011
    Posts
    29

    Programming a Gauge

    My Friend,

    here's my project so far, it works really nice - I really appreciate your help

    Thanks a lotAttachment 5358

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

Similar Threads

  1. Programming
    By JLT in forum Programming
    Replies: 10
    Last Post: 04-14-2011, 10:07 AM
  2. Most likely a programming thing
    By dfelock in forum Programming
    Replies: 7
    Last Post: 12-21-2010, 11:10 AM
  3. 2 programming issues
    By gripper in forum Programming
    Replies: 3
    Last Post: 10-06-2010, 11:10 AM
  4. Help Please - Programming Labels
    By graviz in forum Programming
    Replies: 4
    Last Post: 03-02-2010, 10:37 PM
  5. VB Programming
    By mstefansen in forum Programming
    Replies: 4
    Last Post: 08-31-2009, 07:15 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