q1w2e3r4t7
Active member
- Joined
- Nov 15, 2005
- Messages
- 30
I have 2 tables (Transactions, Entries)
They have a relationship of one Transaction.ID to many Entried.TransIDs.
i want to be able to delete delete a list of Transactions & the associated linked entries based on a Transaction.Naration Value.
How is this possible?
i have tried;
but gives me the following error ;
Im only just starting to learn SQL and unsure of whats going wrong here, any assistance would be greatly appreciated.
Thanks, (p.s. running vs.2005 VB if it helps)
They have a relationship of one Transaction.ID to many Entried.TransIDs.
i want to be able to delete delete a list of Transactions & the associated linked entries based on a Transaction.Naration Value.
How is this possible?
i have tried;
Code:
DELETE
FROM dbo.Entries
INNER JOIN dbo.Transactions ON dbo.Entries.TransID = dbo.Transactions.ID
WHERE (dbo.Transactions.Naration LIKE " & "Sales" & ")
but gives me the following error ;
Code:
Incorrect Syntax near the keyword INNER as system.data.sqlclient.sqlconnection.onerror
Im only just starting to learn SQL and unsure of whats going wrong here, any assistance would be greatly appreciated.
Thanks, (p.s. running vs.2005 VB if it helps)