Results 1 to 2 of 2
  1. #1
    normie is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jul 2010
    Posts
    53

    Form to sub form problem

    I have a form with a combo box the pulls up and filters a query in a subform...there can be 1 to 100 lines in the subform
    What I want to know is how can I connect the two forms to be able to check a box on the form and have it fill in the check boxes in the subform without having to click all in the subform?


    This will save time and errors

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    You want to automatically update a yes/no field in up to 100 subform records? This will require VBA code. The code can either execute an SQL UPDATE action or open a recordset of the subform records and edit the recordset in a loop structure.

    The SQL action would be like:
    CurrentDb.Execute "UPDATE tablename SET fieldname=True WHERE ..."

    The WHERE clause would be the criteria used to filter the subform records.
    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. Sub Form problem
    By sk88 in forum Access
    Replies: 2
    Last Post: 01-05-2012, 02:48 PM
  2. Form problem
    By DPG in forum Forms
    Replies: 12
    Last Post: 09-17-2010, 09:05 AM
  3. Form problem
    By mc24 in forum Forms
    Replies: 3
    Last Post: 08-04-2010, 06:39 AM
  4. Form Name Problem
    By jgelpi16 in forum Programming
    Replies: 4
    Last Post: 07-22-2010, 12:56 PM
  5. Replies: 2
    Last Post: 06-14-2010, 03:25 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