SQL code to delete one specific record from a table?
What would be the SQL code to delete the record in a table containing a specific ID 1 and ID 2 dual primary key in MS Access 2003?
SQL
Last Comment
Michael2008
8/22/2022 - Mon
Jim Horn
{Access}
DELETE * FROM YourTable WHERE ID IN (1, 2)
Never heard of a 'dual primary key'. Can you give me a 'for example'?
Michael2008
ASKER
I don't know what you Access Gurus call it, but i call it a dual primary key, where you have 2 fields as the primary key, so you can have repeats in a single field, but no duplicate combinations. See example db if you want an example Dual-Primary-Key-Example.mdb
DELETE * FROM YourTable WHERE ID IN (1, 2)
Never heard of a 'dual primary key'. Can you give me a 'for example'?