Results 1 to 8 of 8
  1. #1
    cmorten is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2014
    Posts
    16

    Check multiple boxesat once


    I have little to no experience with VB code but I am trying to learn albeit slowly. I need to figure out how to select multiple check boxes in a column at once because I would rather not go through each cell hitting the space bar to check each one and all my research has lead me to one conclusion... I need to know VB Code. I can record a macro in excel and that is as far as my knowledge goes.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    What criteria can be used to identify the records you want to update? All records for a particular date or particular city or whatever? This does not require VBA, can be done with an UPDATE action query.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    cmorten is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2014
    Posts
    16
    Quote Originally Posted by June7 View Post
    What criteria can be used to identify the records you want to update? All records for a particular date or particular city or whatever? This does not require VBA, can be done with an UPDATE action query.
    So I have multiple headings and I have to filter for "HR Payroll" under my description heading. The description is not the exact same every time, It always starts with "HR Payroll" but then following it will say 2007 or 2006 or 2012 etc, and it will say MO and then a series of 2 - 4 numbers. so it appears as "HR Payroll 2007 MO 7 0".

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    What do you mean by 'multiple headings'? You have multiple similar name fields with the same type data? This is not a normalized data structure and will cause much frustration.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    cmorten is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2014
    Posts
    16
    Quote Originally Posted by June7 View Post
    What do you mean by 'multiple headings'? You have multiple similar name fields with the same type data? This is not a normalized data structure and will cause much frustration.
    I have attached a pdf of what it looks like.
    Attached Files Attached Files

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Okay, there is one field "Description". So what filter criteria should be applied in the UPDATE action? All records where Description begins with "HR Payroll"? Are there any other descriptions or does every record have "HR Payroll"? What is the rule for setting the checkbox?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    cmorten is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2014
    Posts
    16
    Quote Originally Posted by June7 View Post
    Okay, there is one field "Description". So what filter criteria should be applied in the UPDATE action? All records where Description begins with "HR Payroll"? Are there any other descriptions or does every record have "HR Payroll"? What is the rule for setting the checkbox?
    The only records I want to check are ones that begin with HR Payroll. There are 63,000 records some checked and some unchecked. I need to leave any that are currently checked alone. What I would like to do is Filter for only HR Payroll and then somehow make all of them checked. What this will do is I run reports from this database and if it is checked it will not pull in that data it will only pull in the unchecked data. This table contains expenses, income, transfers, deposits, and payroll. Some of those are checked and some are unchecked because we also have a spreadsheet that feeds those same reports so if it there is a check than it means the other spreadsheet contains the exact same transaction and and the check mark says don't pull this record into the report.

  8. #8
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Could build an Access UPDATE query object and run it or use VBA.

    CurrentDb.Execute "UPDATE tblFGITRND SET DT = True WHERE Description LIKE 'HR Payroll*'"
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Query with Multiple check box field
    By preveo in forum Queries
    Replies: 2
    Last Post: 06-09-2014, 11:07 AM
  2. Deselect Multiple yes/no check boxes
    By OCStan in forum Access
    Replies: 3
    Last Post: 09-09-2013, 01:05 PM
  3. Replies: 0
    Last Post: 03-09-2011, 02:59 PM
  4. Check multiple data
    By carstenhdk in forum Queries
    Replies: 1
    Last Post: 05-05-2010, 10:20 AM
  5. Check multiple data
    By carstenhdk in forum Access
    Replies: 1
    Last Post: 05-05-2010, 10:19 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