Results 1 to 10 of 10
  1. #1
    ondrejruz is offline Novice
    Windows 10 Office 365
    Join Date
    Oct 2022
    Posts
    16

    A new table glued together from parts of three other tables

    Hello. I have 3 tables in Access. I need to select part of the records from each table and create a new table from them. When I do it by copying, the resulting table is wrong. Although IDs are unique in each record. Can anyone help? Ondrej

  2. #2
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    use an append query

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Why do you need a table as opposed to just using a query? Do these tables have relationships?

    Provide sample data and desired result. Either build tables in post or attach file.
    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.

  4. #4
    ondrejruz is offline Novice
    Windows 10 Office 365
    Join Date
    Oct 2022
    Posts
    16
    All tables have the same structure. The record has 75 fields. There's personal information in there so I can't post it.

  5. #5
    ondrejruz is offline Novice
    Windows 10 Office 365
    Join Date
    Oct 2022
    Posts
    16
    I have an idea that it can be done in the VB, I just need an example.
    - mdb file1 opens
    - mdb file2 opens
    - table tab1 is opened in file1
    - table tab1 is opened in file2
    - tab1 is "read" from file1 in the cycle
    - via INSERT, the record from file1 is "written" into tab1 from file2
    Can it be done somehow?
    Ondrej

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    We need data structure and relationships, not real personal data.

    Now you tell us these tables are in different files?

    Set links to tables. Build queries.
    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.

  7. #7
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,940
    Quote Originally Posted by ondrejruz View Post
    I have an idea that it can be done in the VB, I just need an example.
    - mdb file1 opens
    - mdb file2 opens
    - table tab1 is opened in file1
    - table tab1 is opened in file2
    - tab1 is "read" from file1 in the cycle
    - via INSERT, the record from file1 is "written" into tab1 from file2
    Can it be done somehow?
    Ondrej
    No need for VB, can be done all via queries.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  8. #8
    xps35's Avatar
    xps35 is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Jun 2022
    Location
    Schiedam, NL
    Posts
    232
    Quote Originally Posted by ondrejruz View Post
    - mdb file1 opens
    - mdb file2 opens
    - table tab1 is opened in file1
    - table tab1 is opened in file2
    - tab1 is "read" from file1 in the cycle
    - via INSERT, the record from file1 is "written" into tab1 from file2
    You will find your answer in post #6.

    I would like to point out that it is important that you give a clear description of your problem. The quoted text says something very different from the original question. No three tables here and no new table to be made. You also did not mention that there were different databases.
    Groeten,

    Peter

  9. #9
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    @xps35
    You will find your answer in post #6.
    Do you mean post #2?

  10. #10
    xps35's Avatar
    xps35 is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Jun 2022
    Location
    Schiedam, NL
    Posts
    232
    Quote Originally Posted by CJ_London View Post
    @xps35Do you mean post #2?
    No I really mean #6. With the knowledge of that moment, #2 was the correct answer. Now that we know that there are different databases, linking tables is an essential part of the solution. That is also mentioned in #6.
    Groeten,

    Peter

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

Similar Threads

  1. Parts List on Parts Requisition Report
    By billgyrotech1 in forum Access
    Replies: 16
    Last Post: 06-03-2019, 01:17 PM
  2. Replies: 9
    Last Post: 12-20-2018, 08:22 PM
  3. Replies: 4
    Last Post: 05-30-2014, 11:04 AM
  4. Replies: 1
    Last Post: 12-01-2013, 08:13 PM
  5. Replies: 3
    Last Post: 08-02-2012, 11:37 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