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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

append qry - insert record

Status
Not open for further replies.

shelspa

Technical User
Dec 13, 2001
66
US
I have two tables: tblFormulations and tblWP
The records in the first are unique to the field: FormulationsLot.
The records in the second are unique to WPLot.
These two fields have identicle values. When a new record is generated in tblFormulations, I want a new record to be appended to tblWP with WPLot equal to FormulationsLot. No other fields need to be populated. Do I create some kind of append query which is run during data entry into tblFormulations?
 
You may consider something like this:
INSERT INTO tblWP (WPLot)
SELECT FormulationsLot FROM tblFormulations
WHERE FormulationsLot Not In (SELECT WPLot FROM tblWP);

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top