Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create record in two tables

Status
Not open for further replies.

icupat

Technical User
Aug 6, 2002
25
CA
Hey, This is what I'd like to do.

When I create a record on one table, I want it to create a new record on the other table taking some of the values from the original table.

So i have tableA, with a related form. When I put in the "itemname" it creates a calculated value based on the name, it's recorded as "calcnum", there's other things recorded in the table aswell. I'd like for whenever I make a new record in the tableA for there to be a new record created in a tableB with ONLY the "itemname" and "calcnum" record, and none of the other records from tableA.

Thanks for your help,
Patrick
 
You may have a reason for your db structure, but should you be new to db building, some further research might be useful. Keywords: "Duplicate Data" and "Storing calculated values". I found this article about db design basics helpful:
If you search this forum, you will find more infos from more experienced members on "Calculated Values".

Just in case,

TomCologne
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top