My problem is I am comparing two records from different tables and deleting those that match.
I have found this bit of code :
DELETE emails
FROM emails
INNER JOIN CustRecords ON CustRecords.Email = emails.email
Which works well, but i would also like to have a return value of how many records have been deleted.
Now if I do an SQL Query direct this is given to me but if I use my asp program it doesn't show a thing.
I know I have to use the count() funtion but I'm only still a beginner.
If possible i would like the count result as a variable like count = (how many records deleted)
?