Add data to 2nd table after appending to 1st table

G

Guest

I have an append query to add records to table 1. This table has an ID field
set as AutoNumber. When records are appended to table 1, I need the
AutoNumber to be added to a second table. The second table has a field named
ID and it is a Number field.

I've set Referential Integrity with Cascading Updates and Deletions.
However, I can not get Table 1 ID # to auto populate into Table 2. How is
this accomplished?
 
J

John W. Vinson

I have an append query to add records to table 1. This table has an ID field
set as AutoNumber. When records are appended to table 1, I need the
AutoNumber to be added to a second table. The second table has a field named
ID and it is a Number field.

I've set Referential Integrity with Cascading Updates and Deletions.
However, I can not get Table 1 ID # to auto populate into Table 2. How is
this accomplished?

It's almost never either necessary nor appropriate to do this.

Creating an empty "placeholder" record with no data in it is pointless!

Just use a Subform and add data to the child table when it's needed; or run
another Append query if you're migrating data from someplace else. But there's
no point in putting in a record with only the ID.

John W. Vinson [MVP]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top