Results 1 to 9 of 9
  1. #1
    tconcepcion is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Jan 2015
    Posts
    6

    Select all checkboxes in a query

    I am very new to Access and have little to no knowledge on SQL.



    I have a table that has about 30,000 names on it. The first ~10,000 need to have Column 1 checked, the second ~10,000 need to have Column 2 checked, the last ~10,000 need to have Column 3 checked.

    Right now I have all 30,000 names but no check marks. I need help to "mass check" the first group in Column 1 (and subsequently the second and third group with their respective columns)

    Currently, my SQL is simply -

    SELECT Table1.[First Name], Table1.[Last Name], Table1.Vinci, Table1.ID
    FROM Table1;

    Note: Vinci = Column 1


    I hope this makes sense,
    Thanks in advance

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Need criteria to filter records. Maybe you can use the ID field for that.

    Why is there 3 fields if only one can be checked for each record? Should be 1 field with 3 options.
    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
    tconcepcion is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Jan 2015
    Posts
    6
    Sorry, some records can have all three fields checked. Not many of them have this, so I can do these specific examples manually.

    I was thinking about using the ID field, something along the lines of "ID 1-10567 = TRUE", but I'm not sure what the SQL would look like for that...

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    User query builder to help get correct syntax, should be like:

    UPDATE tablename SET fieldname = True WHERE ID BETWEEN 1 AND 10567
    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
    tconcepcion is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Jan 2015
    Posts
    6
    Thank you! That is what I'm looking for,

    However, I am getting the following error message: Syntax Error in FROM clause

    My entire SQL looks like this:

    SELECT Table1.[First Name], Table1.[Last Name], Table1.Vinci1, Table1.ID
    FROM Table1
    UPDATE Table1 SET Vinci1 = True WHERE ID BETWEEN 2 AND 17299;

    I'm aware thats it's probably a parentheses issue, but I'm lost as to how to fix it.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Why do you have the SELECT? My example shows only UPDATE action statement.
    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
    tconcepcion is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Jan 2015
    Posts
    6
    Ok, I did this and now the query only shows the Vinci1 column, with none of the boxes checked.

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Did you Run the 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.

  9. #9
    tconcepcion is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Jan 2015
    Posts
    6
    Obviously I'm very new at Access... Yes! That worked! Thank you so much!

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

Similar Threads

  1. Update query for checkboxes
    By scoe in forum Queries
    Replies: 2
    Last Post: 06-20-2014, 07:12 AM
  2. Replies: 13
    Last Post: 07-03-2013, 03:08 PM
  3. Replies: 1
    Last Post: 06-03-2013, 08:57 AM
  4. Filter Query based upon Checkboxes
    By olinms01 in forum Queries
    Replies: 2
    Last Post: 01-21-2013, 11:38 AM
  5. select multiple checkboxes in access 2003?
    By GoneFusion in forum Forms
    Replies: 2
    Last Post: 09-20-2010, 01:44 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