Results 1 to 4 of 4
  1. #1
    Carpy01 is offline Novice
    Windows XP Access 2003
    Join Date
    Oct 2010
    Posts
    7

    Disable master form close button


    I need to disable the main forms close button when the subform opens. Then enable same button when sub is closed

  2. #2
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    when you say subform, do you mean another form which opened by main form?
    if yes, you can disable the button when open the subform. in the subform's form_close event, enable the button of main form.

  3. #3
    Carpy01 is offline Novice
    Windows XP Access 2003
    Join Date
    Oct 2010
    Posts
    7
    Thank you for your reply. I have tried your suggestion however I'm apparently missing something. Would you program your suggestion with vb code or with an expression. You're correct secound form (called subform) opens freom button on main form.
    Thanks for your help

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    If you use the acDialog argument of the OpenForm command, the user cannot get back to the 1st form without closing the 2nd form. It will open the 2nd form as Modal.

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

Similar Threads

  1. Disable App Close button in 2007
    By ajetrumpet in forum Programming
    Replies: 3
    Last Post: 09-05-2010, 11:32 PM
  2. Enable button in the master form when clicking in the detail
    By DistillingAccess in forum Programming
    Replies: 8
    Last Post: 08-03-2010, 10:54 AM
  3. Add a close button?
    By thestappa in forum Reports
    Replies: 1
    Last Post: 07-15-2010, 10:43 AM
  4. Replies: 4
    Last Post: 09-10-2009, 03:09 AM
  5. how to disable command button
    By archie in forum Access
    Replies: 1
    Last Post: 08-27-2009, 11:11 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