Results 1 to 3 of 3
  1. #1
    Jin is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Oct 2013
    Posts
    2

    update query to include subform/child table

    I add data to some fields in a form which includes subform (one field and one to many instances).

    When finished I want to click button to update other records meeting criteria with the same data that has been entered. But this will include the subform data (held in one to many table).

    Can i do this with any update query or do I need to do VBA with loops and stuff ?

    thanks so much if anyone can answer this. I haven't used Access in long time

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    If you are updating several tables from data in a subform, my guess is you will need some vba.
    Can you give some sample m data and table info to show us details of what you want to happen?

  3. #3
    Jin is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Oct 2013
    Posts
    2
    Hi, thanks for answering my query. Here is some more info.
    Please see attached jpg (I had to black out some sensitive
    stuff) - it's the single form i use for the database.

    So, all the fields except the CS categories are in one table,
    lets call it maintable

    CS categories table is related to maintable in one-to-many.
    The database is already complete, there are no new records to
    be added (except to the cs categories which is sub table of
    main)

    A user searches by SN number and it filters, for example, 5
    records.

    The user updates ONE of these with records, a few fields. One
    of the fields updated is CS categories - adding several
    choices from a list box which is a lookup from another table

    I then want the option of pushing a button to update the
    other FILTERED records with the changes.
    Which means somehow copying all the added CS categories to
    the other records.
    I hope this makes sense.
    thanks


    Click image for larger version. 

Name:	access update question.JPG 
Views:	8 
Size:	93.0 KB 
ID:	14233

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

Similar Threads

  1. Replies: 5
    Last Post: 03-30-2013, 12:56 PM
  2. Enter or Update Child Record?
    By mkling in forum Access
    Replies: 7
    Last Post: 06-05-2012, 08:09 AM
  3. Problem using Parent/Child Form/Subform
    By EvanRosenlieb in forum Forms
    Replies: 4
    Last Post: 06-27-2011, 05:25 PM
  4. Update field in table after update on a subform
    By jpkeller55 in forum Queries
    Replies: 3
    Last Post: 09-30-2010, 08:02 PM
  5. Parent/Child subform
    By Jerry8989 in forum Forms
    Replies: 1
    Last Post: 09-18-2009, 07:27 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