Results 1 to 2 of 2
  1. #1
    iarmereth is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2012
    Posts
    1

    Add existing record to a subform help!

    Hi All,

    I'm having real trouble trying to add an existing record to my subform instead of creating a 'new' record. My scenario is:

    I have a branches table and form where my users can create a customer or branch - ie: KFC Auckland (Branch) or KFC Wellington (Branch) etc

    I also have a Head Party table which is a one to many relationship to my branches. I can create a new head party and then go into my branches form select each KFC record one at a time and add it's head party - ie: KFC Head Office.

    What I would like to be able to do is have the ability to create multiple branches, then when the user gets the head party info, open the head party form, create a head party and type the ID of each branch associated with the head party in a subform, thus linking them together.

    I hope this all makes sense!

    james

    P.s
    i only chose KFC as my example as I thought it was recognised worldwide!!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,948
    How can you 'add an existing record? Did you mean 'add to an existing record on my subform'?

    Not understanding the issue. Are you not able to create branch records before the head party info is known?

    If the branch records can be created without the head party info, then couple ways can approach updating the head party info.

    1. A form/subform arrangement can facilitate associating branches to the head party info. Main form bound to head party form, subform (Master/Child links not set), bound to branches filtered to records where head party field is null. Use a click event to trigger saving the head party ID to branch record.

    2. Save head party info then open form of branches filtered where head party field is null, select head party from combobox.

    3. Will the head party info and its associated branches all have the same prefix (such as the KFC in example)? If so, an UPDATE sql action might work.
    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. Replies: 5
    Last Post: 03-02-2012, 08:58 PM
  2. Replies: 5
    Last Post: 01-27-2012, 04:47 PM
  3. Replies: 4
    Last Post: 05-30-2011, 08:20 PM
  4. Replies: 0
    Last Post: 02-25-2011, 09:40 AM
  5. Find existing record with multiple criteria
    By TheWedgie in forum Forms
    Replies: 1
    Last Post: 03-25-2009, 10:24 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