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

Sql to delete record from table

Status
Not open for further replies.

101287

MIS
Apr 8, 2006
189
US
Need to do a query to delete records in a table if there is a match in another table.

Try the code below but it does not work. Any suggestions.

DELETE jsfAccountManagerDetail.jsfRequirement, *
FROM jsfAccountManagerDetail, amReqXreftlb
WHERE (((jsfAccountManagerDetail.jsfRequirement)=[amReqXreftlb]![Number ]));

Thank you, Luis
 
Code:
DELETE *
FROM jsfAccountManagerDetail
WHERE jsfRequirement IN (Select [Number] From amReqXreftlb);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top