Results 1 to 8 of 8
  1. #1
    chromachem is offline Advanced Beginner
    Windows 10 Access 2010 64bit
    Join Date
    Feb 2016
    Posts
    49

    Add right click menu choice to table

    We would like to add a menu choice to the right click menu in a table.

    Basically, we would like to right click a field in a table and have an additional choice to the menu that normally pops up.

    Right click field - have the choice to click "Reports" on the menu.

    Click reports would run a macro - something simple such as

    MsgBox "Hello"




    Easy to do from a cell in Excel. Driving myself nuts trying to figure out how to do it in Access 2010.

    THX

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    I don't know that it's possible to change the context menus at the table level, you can do it at the form level (example link below). You might be able to create custom menus but that's a long way to go. Is there a reason you need a context menu at the table level and not, say, on a form instead?

  3. #3
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    I don't think you can create custom menus for a Table...in truth, Tables aren't really meant to be used for data entry...especially by end-users! You need to create a Form off of a Table, using the Form Wizard, if need be, and go from there!

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  4. #4
    chromachem is offline Advanced Beginner
    Windows 10 Access 2010 64bit
    Join Date
    Feb 2016
    Posts
    49
    Got it. I have to get my head out of the Excel/VBA mentality, and think of things from a database perspective.

    I did make a form to do what I wanted today.

    Thanks.

  5. #5
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Quote Originally Posted by chromachem View Post
    I have to get my head out of the Excel/VBA mentality, and think of things from a database perspective.
    It's really good that you realize that! VBA for Excel...and VBA for Access, are not the same language! They both derive from Visual Basic...but they both differ from VB, and from each other, in many ways!

    To make it even more confusing, they (VB, VBA for Excel, VB for Access) share many of the same Functions, name-wise...and many of the same Properties, name-wise...but they don't always work in the same way!

    Only real advice I have to give, when going from one to another, is that if something doesn't work as you're expecting it to, be sure to check the syntax in the new language.

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  6. #6
    chromachem is offline Advanced Beginner
    Windows 10 Access 2010 64bit
    Join Date
    Feb 2016
    Posts
    49
    My problem has been approach. I am so used to working with spreadsheets. When I see a table - it looks like a spreadsheet, and psychologically I try to treat it as a spreadsheet. Even when working with a form, my first instinct is to stick everything in a variable, rather than using data residing in a table.I'm getting the idea of how to approach problems, and how to implement the solution. I need to repeat to my self - you're not dealing with a cell, you're not dealing with a cell.....

    I'll get there.

  7. #7
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    As I said before...it's really good that you realize that! And always know that we're here to help!

    Good luck with your project!

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  8. #8
    chromachem is offline Advanced Beginner
    Windows 10 Access 2010 64bit
    Join Date
    Feb 2016
    Posts
    49
    Good to know there is someone to turn to. THX!!!

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

Similar Threads

  1. Simple right-click menu example
    By pkstormy in forum Code Repository
    Replies: 1
    Last Post: 02-03-2015, 06:49 PM
  2. right click context menu
    By rpeare in forum Programming
    Replies: 8
    Last Post: 10-27-2014, 11:16 AM
  3. Replies: 5
    Last Post: 06-25-2014, 09:19 AM
  4. Filtering Report results with a choice-menu
    By Herbolife in forum Reports
    Replies: 1
    Last Post: 04-19-2013, 09:46 AM
  5. On click menu items do not work
    By mrk68 in forum Access
    Replies: 1
    Last Post: 03-23-2009, 07:29 PM

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