Results 1 to 8 of 8
  1. #1
    mnewton367 is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    Jul 2015
    Posts
    14

    Check Boxes


    Alright so basically I have tables with a bunch of data on each record and one of the fields is a check box. These tables are 'subTables' of a Form. I want to make it so when someone checks off a record in one of these tables, it moves to the next table respectively. And for the last table's complete check, it simply deletes. How would I go about this?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    If a user check marks the record, then do an update query and/or append query.
    on the AFTERUPDATE of the check box:
    upd the checked rec in tbl1.
    append the checked rec to tabl2.

    en continue until the last table is filled...then run a delete qry.

  3. #3
    mnewton367 is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    Jul 2015
    Posts
    14
    Quote Originally Posted by ranman256 View Post
    If a user check marks the record, then do an update query and/or append query.
    on the AFTERUPDATE of the check box:
    upd the checked rec in tbl1.
    append the checked rec to tabl2.

    en continue until the last table is filled...then run a delete qry.
    Could you elaborate a little more on how to do update queries and append queries, and such? I'm trying to teach myself Access here, so I don't know the fine details that it's capable of.

  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
    What do you mean by 'moves to the next table respectively' - what is the next table? What do you mean by 'complete check'? And delete what - just this one record?
    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
    mnewton367 is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    Jul 2015
    Posts
    14
    So the main form has several subForm tables on it and each record in these tables has a 'Mark Complete' check for that 'item'. So the person using it can mark when that item is complete, it then moves to the next table for the next process. Then once complete, that record can then be checked complete and deleted.

  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
    Record deletion should be a rare event. I don't understand why you want to delete records. Filter records instead of deleting.

    Do you already have code for 'moving to next table'? Do you actually mean move to a subform?
    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
    mnewton367 is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    Jul 2015
    Posts
    14
    Why is it 'rare' to delete records? What does filtering a record instead of deleting it entail?

    No, I don't have code. I wouldn't mind trying to write it myself, but I don't know where I would put it.

  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
    Because once a record is deleted, it is gone for good. Too often this is regretted after accomplished. Filtering would mean building a query that has filter parameter. But if you really want to delete, so be it. However, without understanding your db structure it is difficult to advise specifics. And yes, possibly the trickiest part of coding is figuring out what event to put it in.
    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. Check all check boxes on continuous form
    By NISMOJim in forum Forms
    Replies: 7
    Last Post: 06-14-2016, 02:14 AM
  2. Check box based on values of other check boxes?
    By Michael.Reynolds1775 in forum Forms
    Replies: 3
    Last Post: 03-25-2015, 12:58 AM
  3. Replies: 18
    Last Post: 06-20-2014, 12:13 PM
  4. To check or Un-Check all Boxes in a form
    By devcon in forum Forms
    Replies: 7
    Last Post: 05-01-2010, 12:03 AM
  5. Un-Check all Boxes
    By cotri in forum Forms
    Replies: 4
    Last Post: 04-30-2010, 12:53 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