Results 1 to 3 of 3
  1. #1
    caffe is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2010
    Location
    NJ
    Posts
    2

    Disable checkbox on a form


    I have an Access database where managers can search records using a form. The data is in an SQL database and tables are linked in to Access. One of the items on the form is a check box called Delete, so a manager can mark a record to not process.

    However, if the record has already processed (which is a -1 for a check stored in another field called Sent), I need to either disable or hide the Delete checkbox. There have been instances where the manager "didn't notice" the Sent check and clicked Delete, and then questioned why the item processed.

    Any suggestions greatly appreciated!!

  2. #2
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    check in after_update event.

  3. #3
    caffe is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2010
    Location
    NJ
    Posts
    2
    Thanks for pointing me in the right direction! I was trying to disable or hide the checkbox, what I needed was to make sure the users checked the box when appropriate. Here's the vba I used in the AfterUpdate:

    Code:
       If Forms![management]![DeleteMark] = Forms![management]![Sent] Then MsgBox ("YOU CANNOT DELETE A PAYMENT THAT HAS ALREADY PROCESSED!")
        If Forms![management]![DeleteMark] = Forms![management]![Sent] Then DoCmd.RunMacro "ClearDeleteMark"
    The ClearDeleteMark macro sets the DeleteMark field back to Null.

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

Similar Threads

  1. Automatic checkbox based on value entered in form
    By w00tage19 in forum Database Design
    Replies: 2
    Last Post: 07-12-2010, 04:20 AM
  2. Disable Checkboxes for a row in Form
    By seshan in forum Programming
    Replies: 1
    Last Post: 02-05-2010, 07:36 PM
  3. Checkbox in continous form
    By senthilrg in forum Access
    Replies: 11
    Last Post: 12-05-2009, 08:49 AM
  4. Checkbox filter on a form
    By aletrindade in forum Access
    Replies: 1
    Last Post: 12-02-2009, 06:22 AM
  5. Disable ALT+TAB key using VBA
    By Yance in forum Programming
    Replies: 8
    Last Post: 08-27-2009, 10:36 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