Solved

Chart Object

Posted on 2011-02-13
4
568 Views
Last Modified: 2013-11-05
Hello experts ,

i use chart object in access .I have succesfully integrated it into my form but i have the following issue: The object is set to "locked" but it is still clicable and when i click on it a new window opens and i can edit there the options (legend graph etc).I want my form only to show this control and noone to edit it( either if the graph is clicked) .i want in simple words something like an "image" that wont be able to be edited in the form but will be updated after the data changes.Is that possible ?

Thank you!
0
Comment
Question by:stathisx
  • 2
  • 2
4 Comments
 
LVL 19

Expert Comment

by:darbid73
ID: 34885835
I see that you have tagged this for Access 2010.  I do not have that.  

If I have a chart on a form I put in the "Click" event and the "doubleclick" event of the chart control a "setfocus" to another control such as a button.

Me.MyButtonName.Setfocus

This stops it for me in for example access 2003.
0
 
LVL 1

Author Comment

by:stathisx
ID: 34886771
first of all thank you for the assistance.the solution you provided partially solves my problem but when i right click on the chart object i have a menu which allows me to edit the chart.i want it to be disabled too.how this can be done ?

thank you!
0
 
LVL 19

Accepted Solution

by:
darbid73 earned 250 total points
ID: 34886884
Assuming you do not have a special event for right clicks, this would be a hack solution.

You can trap the mouse event


Private Sub chart_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)

   Select Case Button
           
      Case 2 ' right click
              
       'setfocus elsewhere
       
    End Select

End Sub


End Sub

Open in new window

0
 
LVL 1

Author Closing Comment

by:stathisx
ID: 34886926
Thank you for the asistance!
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question