Results 1 to 4 of 4
  1. #1
    byulogia@gmail.com is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Feb 2019
    Location
    Papua New Guinea
    Posts
    22

    Enable Button

    Hi There.

    I have a form. I have a check box at the last part of the form (where the data entry person will check to confirm).



    I have the save record button (Disabled).

    I want the save button to enable, only if the Check box is checked. If not checked, the save button remain disabled.

    Any sample codes?

    Thanks

  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    ranman256's Avatar
    ranman256 is online now VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,527
    have it default as Enabled = false (in design)
    and...
    Code:
    sub chkBox_afterupdate()
    btnSave.enabled = chkBox.value
    end sub

  4. #4
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,545
    Quote Originally Posted by ranman256 View Post
    have it default as Enabled = false (in design)
    and...
    Code:
    sub chkBox_afterupdate()
    btnSave.enabled = chkBox.value
    end sub
    I think you would also need this line of code in the On Current event of the form.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

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

Similar Threads

  1. Replies: 1
    Last Post: 10-20-2013, 06:37 PM
  2. Replies: 2
    Last Post: 11-30-2012, 08:03 PM
  3. Enable/Disable Button
    By P.Malius in forum Programming
    Replies: 3
    Last Post: 09-07-2012, 08:36 AM
  4. Replies: 5
    Last Post: 03-13-2012, 12:28 PM
  5. Replies: 2
    Last Post: 01-11-2011, 02:00 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