Results 1 to 3 of 3
  1. #1
    whninrome81 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2012
    Posts
    11

    Add new record to different table

    Using Access 2007 on Windows XP or Windows 7.



    I have two tables (tblvariables and tblEEGvariables). They are linked by a primary key (MRN) and a foreign key (studyday). I have developed a form using a recordsource query that includes fields from both.

    How can I add a "new record" - one for tblvariables (for each new patient) and separately into tblEEGvariables (for each day of EEG - multiple per patient) - using two buttons within the form?

    I'm not adverse to using VB but I have no experience in it so your patience is appreciated!

  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,622
    Do not join these tables in one form RecordSource. You need a form/subform arrangement. Main form bound to tblvariables, subform bound to tblEEGvariables. A subform container control on main form will hold the subform. Master/Child links properties of the container control will synchronize the related records.
    Access Help has guidelines on creating form/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.

  3. #3
    whninrome81 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2012
    Posts
    11
    Great - thank you! I think that might work...

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

Similar Threads

  1. Query w/ 1 record in Table 1, many in Table 2
    By WestofYouLB in forum Access
    Replies: 1
    Last Post: 04-19-2011, 05:02 AM
  2. Insert record from table into different table
    By tpcervelo in forum Forms
    Replies: 3
    Last Post: 01-25-2011, 02:41 PM
  3. Replies: 2
    Last Post: 06-20-2010, 06:54 PM
  4. table name as record
    By stigmatized in forum Access
    Replies: 1
    Last Post: 11-23-2009, 04:34 AM
  5. Move a record from one table to another table.
    By botts121 in forum Programming
    Replies: 4
    Last Post: 06-25-2009, 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