Results 1 to 12 of 12
  1. #1
    msasan1367 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Feb 2013
    Posts
    60

    disale right click in subform

    how to disable right click in subform?

  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,930
    Try setting ShortcutMenu property of form to No.
    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
    msasan1367 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Feb 2013
    Posts
    60
    Quote Originally Posted by June7 View Post
    Try setting ShortcutMenu property of form to No.
    I do it but it just disable right click in form not in subform

  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,930
    Then you didn't set the property of the subform, you set the main form property. Open the subform indpendently in design view.
    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
    msasan1367 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Feb 2013
    Posts
    60
    Quote Originally Posted by June7 View Post
    Then you didn't set the property of the subform, you set the main form property. Open the subform indpendently in design view.
    my subform is table and it hasn't this option in its properties

  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,930
    Then will have to make a form with that table as its RecordSource to use as subform.
    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
    msasan1367 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Feb 2013
    Posts
    60
    Quote Originally Posted by June7 View Post
    Then will have to make a form with that table as its RecordSource to use as subform.
    I do it and at form I disable right click, but at table that is subform, right click is allowed
    Here is my project:
    Database11.zip

  8. #8
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Did you not understand my advice? Create a form with the table as its RecordSource and make that form the SourceObject of the subform container control.

    Why do you even need a subform? why is the table not the RecordSource for the main form? Why do you have a system table as the RecordSource for main form?
    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.

  9. #9
    msasan1367 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Feb 2013
    Posts
    60
    Quote Originally Posted by June7 View Post
    Did you not understand my advice? Create a form with the table as its RecordSource and make that form the SourceObject of the subform container control.

    Why do you even need a subform? why is the table not the RecordSource for the main form? Why do you have a system table as the RecordSource for main form?
    because I want to add buttons at form for searching & sorting subform

  10. #10
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Those buttons can be on the same form as the data you want to search. Review http://datapigtechnologies.com/flash...tomfilter.html

    Set the form as Continuous View if you want a datasheet appearance. Controls can be arranged to look like datasheet. Put buttons in header or footer section.

    Still doesn't explain why the main form is bound to a system table.
    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.

  11. #11
    msasan1367 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Feb 2013
    Posts
    60
    I find it: just need to go file > options > current database and disable Allow Default Shortcut Menus

  12. #12
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Yes, that does it for everything. Thought you only want it for the one form. Glad you got it solved.
    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.

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

Similar Threads

  1. Replies: 6
    Last Post: 01-11-2013, 11:33 AM
  2. Filter subform on button Click
    By atom in forum Forms
    Replies: 2
    Last Post: 04-18-2012, 09:43 AM
  3. Replies: 3
    Last Post: 03-29-2012, 12:40 PM
  4. Replies: 1
    Last Post: 02-20-2012, 01:59 PM
  5. On Double Click go to Subform
    By Theremin_Ohio in forum Access
    Replies: 2
    Last Post: 03-30-2011, 08:03 AM

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