Results 1 to 3 of 3
  1. #1
    thekruser is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2010
    Posts
    93

    Arrow Clear all checkboxes?

    What I have:
    tblPersonal
    -Employee# (PK)
    -Print (checkbox)

    What I am trying to do:
    There are times I need to print reports for one or more employee and the best way I have found to do it is to include a 'Print' checkbox in tblPersonal.



    The problem:
    The issue is, when I want to print, I have to manually uncheck all the boxes I had checked last time. I am trying to program a button to uncheck all. There has to be a way to do it, but I cannot figure out how.

    If there is a better way to get this done, please let me know. I am open to any and all suggestions. Thank you in advance for your time and help. have a great day!

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Not how I would select employees to print, but:

    CurrentDb.Execute "UPDATE TableName SET FieldName = False"

    With no criteria, that should set all records to False. Your method wouldn't work very well in a multiuser environment. I'd probably do this:

    http://www.baldyweb.com/multiselect.htm
    Last edited by pbaldy; 09-15-2010 at 06:05 PM. Reason: add clarity
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    thekruser is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2010
    Posts
    93
    Any chances you could help me figure out how to incorporate your idea into the attached form?

    Ideally, 2 buttons would have to be added to the form: one to print everyone the current logged in user can see (non-filtered...should just be able to use the button already on there, but not positive) and one button that would open the multiselect you mentioned above.

    Thank you very much for your help. I just am horrible with VBA. I am learning though.
    Last edited by thekruser; 09-16-2010 at 09:51 AM. Reason: Forgot to attach the example. Oops.

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

Similar Threads

  1. Clear a Field OnClick
    By eww in forum Forms
    Replies: 3
    Last Post: 08-19-2010, 01:55 PM
  2. Replies: 1
    Last Post: 03-28-2010, 08:06 AM
  3. Replies: 0
    Last Post: 01-09-2009, 03:10 PM
  4. clear field values
    By surrendertoo in forum Queries
    Replies: 0
    Last Post: 02-23-2008, 10:57 PM
  5. Search and Clear button
    By polk383 in forum Programming
    Replies: 1
    Last Post: 08-30-2006, 08:51 AM

Tags for this Thread

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