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
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
use an append query
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.
All tables have the same structure. The record has 75 fields. There's personal information in there so I can't post it.
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
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.
No need for VB, can be done all via queries.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
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
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
@xps35Do you mean post #2?You will find your answer in post #6.