Results 1 to 3 of 3
  1. #1
    dgrimes is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Feb 2016
    Posts
    11

    Disabling a button until certain fields are completed

    I have a badge form with a print button at the bottom. I would like this print button disabled until certain fields above are completed. I have text fields and I have radio button (frame) fields connected to other tables. I cannot figure out where or how to write the code that will let me accomplish this. I do not need all the fields on the page complete so I will probably have to name each one. Any help you can give would be appreciated.

    Thank you.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    At every box that must be filled in , I have it chec in the afterupdate event: EnableGoBtn
    Code:
    txtbox1_afterupdate()
       EnableGoBtn
    end sub
    
    sub EnableGoBtn()
         btnGO.enabled = (not isnull(txtBox1))  and  (not isnull(txtBox2)) and (not isnull(txtBox3))
    end sub

  3. #3
    dgrimes is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Feb 2016
    Posts
    11
    Where am I putting the 2nd sub information? In the form properties? Sorry, I'm still learning a lot of this stuff.

    Thank you.

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

Similar Threads

  1. Replies: 6
    Last Post: 11-21-2015, 09:52 AM
  2. Replies: 4
    Last Post: 11-11-2013, 08:39 AM
  3. Disabling fields
    By jle0003 in forum Access
    Replies: 4
    Last Post: 06-06-2012, 09:39 AM
  4. disabling an enabled button that has been clicked.
    By aaron47 in forum Programming
    Replies: 3
    Last Post: 08-26-2011, 09:49 AM
  5. Disabling A Button
    By cksm4 in forum Programming
    Replies: 8
    Last Post: 10-05-2010, 02:07 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