473,396 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Append Records from Related Tables and AutoNumber

I'm using Access 2003 (Access 2000 file format) and I have two tables related one-to-many called tblTempEncounter and tblTempEncounterDetails. I need to move a record from the first table with it's related records from the second table into another pair of tables called tblEncounters and tblEncounterDetails. I've come up with a solution that seems really convulted to me, and it's snagging with multiple users. Will a single append query move data from two related tables into two other related tables and autonumber them? If not, is there a standard way to handle this situation?

Thanks so much for help in advance :-)

Drowning Newbie, aka Patrick Lollis
Nov 6 '07 #1
5 4127
Rabbit
12,516 Expert Mod 8TB
An append query can only append records to one table. That record can be created from multiple tables but it can only append to one table. My question is why the other tables?
Nov 6 '07 #2
ADezii
8,834 Expert 8TB
I'm using Access 2003 (Access 2000 file format) and I have two tables related one-to-many called tblTempEncounter and tblTempEncounterDetails. I need to move a record from the first table with it's related records from the second table into another pair of tables called tblEncounters and tblEncounterDetails. I've come up with a solution that seems really convulted to me, and it's snagging with multiple users. Will a single append query move data from two related tables into two other related tables and autonumber them? If not, is there a standard way to handle this situation?

Thanks so much for help in advance :-)

Drowning Newbie, aka Patrick Lollis
It can be done relatively easily with code, but I'm with Rabbit on this one, why?
Nov 6 '07 #3
I built the data entry form on temp tables so that the user would have to go through all the check and balances I have coded into the data entry process before the data made its way into the permanent tables. I can ditch that part of the design if it's a bad idea, I just assumed that moving the data over would be easy.
Nov 6 '07 #4
JustJim
407 Expert 256MB
I built the data entry form on temp tables so that the user would have to go through all the check and balances I have coded into the data entry process before the data made its way into the permanent tables. I can ditch that part of the design if it's a bad idea, I just assumed that moving the data over would be easy.
A database designer who doesn't trust the users? What's the world coming to?

Hehehehe

Jim
Nov 7 '07 #5
Here's what I've done so far:

1. qryAppendTempEncounter moves temp record to permanent allowing autonumber
2. txtNewEncounterID (invisible) is requeried. It is linked to qryNewEncounterID which searches for records by client, date, program, and location (presumably only one record) and returns the highest encounter number.
3. qryUpdateEncounterID pastes this encounter number into the temp encounter table, which cascades into the temp encounter details table.
4. qryAppendEncounterDetails moves details into the permanent table with the now matching Encounter ID.

Seems convoluted to me, but works with one user. When I go to multiple users, I'm getting craziness. Maybe I also need to ask what the basic checklist is to make sure multiple user interfaces play nice with one another. All I've done so far is paste the database into a shared network drive.

Thanks Again!
Nov 7 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: dd_bdlm | last post by:
Hi all I have a database that stores customer records and their associated insurance details. I need to be able to archive any changes made to that record. Currently the user selects 'record...
1
by: KC | last post by:
I am using Access 2002, with a database template from MS Office. The Orders Management Database. I have tweaked this for use with our company. It is a small database with close to a 1000 records...
3
by: Darin | last post by:
This is something that on the surface seems like it should be simple, but I can't think of a way to do this. I have a table that is a list of "jobs", which users create and use. It has a single...
1
by: Jan | last post by:
I have a table with autoincrement unique ID plus name (required not to be blank) and other fields. I have a list of names in another table and would like to do insert to the name field of the...
22
by: RayPower | last post by:
I'm having problem with using DAO recordset to append record into a table and subsequent code to update other tables in a transaction. The MDB is Access 2000 with the latest service pack of JET 4....
1
by: David | last post by:
Hi, I have an MS Access app which lets me create a new product by copying data from another selected product. All works fine, except one of the copy updates which I cannot fathom. The code...
3
by: wvmbark | last post by:
First time poster... I just found this forum and it appears there's plenty of people here that could make short work of problem that's been driving me absolutely bonkers for months. Every day we...
7
by: wade.wall | last post by:
Hi all, I am having a problem appending data to an existing table. I have two tables with identical fields and I want to append the data from one table (T2) to the first (T1). T1 has 136...
1
by: sparks | last post by:
We have 3 databases that are just copies of the master. I have no idea why this is but I need to put them all in one. They contain a main table and 2 subtables linked one to many. I am sure that...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.