Results 1 to 3 of 3
  1. #1
    byulogia@gmail.com is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Feb 2019
    Location
    Papua New Guinea
    Posts
    22

    Saving Data to 5 tables from one form


    I have 5 tables. I have a form, that has all the fields from the table, What i want is, when pressing enter, the data is inserted into the tables with all fields from the form. Please give me an example code, so I can modify and use. Thanks

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,967
    This is not customary design. Will require code that runs 5 INSERT action SQL statements. Examples of INSERT action are everywhere.

    Why aren't you using form/subforms arrangement? What are relationships of these 5 tables?
    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
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,451
    with a proper design you can use subforms - no code required

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

Similar Threads

  1. Closing Form Without Saving Data
    By Eranka in forum Access
    Replies: 5
    Last Post: 01-03-2018, 01:34 AM
  2. Closing form without saving data
    By Thompyt in forum Programming
    Replies: 5
    Last Post: 03-28-2015, 02:55 PM
  3. Saving RichText data in SQL Tables
    By tylerg11 in forum SQL Server
    Replies: 2
    Last Post: 04-13-2013, 08:03 AM
  4. Replies: 3
    Last Post: 10-25-2012, 11:21 AM
  5. Replies: 6
    Last Post: 06-09-2012, 08:17 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