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() function but I’m only still a beginner.
If possible I would like the count result as a variable like count = (how many records deleted)?
Ok i think i’ve managed to work this out… Seems to be that you can’t use @@ROWCOUNT in an ASP line so i’ve got round the problem by using these 2 lines:
I know that their is a simplier way of doing this but i’m only a beginner!!!
Thanks rlb.usa for you help