Solved

Chart Object

Posted on 2011-02-13
4
566 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Familiarize people with the process of utilizing SQL Server functions 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 Microsoft Ac…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

932 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now