Results 1 to 4 of 4
  1. #1
    behnam is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2014
    Posts
    72

    How to update checkbox for record using vba.


    Hi all,

    I have a button that opens a report of the current form your on. Can someone tell me how i can then write the code for another button on the report that changes the value in a checkbox called Need_approval to true for that current record when clicked.

    Thanks.

  2. #2
    John_G is offline VIP
    Windows XP Access 2003
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    Hi -

    [Need_Approval] = True

    Where is the checkbox - on the form or the report?

    But why would you want that in a report?

    John

  3. #3
    behnam is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2014
    Posts
    72
    The checkbox is niether in the report or form, its in the table. I just need to modify it once a button i create is clicked on the report.

  4. #4
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    In the query, make a field : forms!frmRpts!chkBox as NeedsApproval.

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

Similar Threads

  1. Replies: 12
    Last Post: 10-27-2012, 05:44 AM
  2. Replies: 1
    Last Post: 11-03-2011, 11:56 PM
  3. Unbound checkbox's that update
    By Madmax in forum Forms
    Replies: 5
    Last Post: 06-20-2011, 02:56 PM
  4. Multi Update By Checkbox
    By Nsquared in forum Forms
    Replies: 3
    Last Post: 02-10-2010, 03:08 PM
  5. Checkbox to update value
    By Wrangler in forum Forms
    Replies: 1
    Last Post: 01-03-2006, 06:34 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