Solved

Chart Object

Posted on 2011-02-13
4
572 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 20

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 20

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

756 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