Send e-mail when Adding/Editing record only if checkbox ticked |
6/1/2009 4:09:46 PM |
ASPRunnerPro General questions | |
![]() I have a two part question/problem. I would like to be able to send an email when a record is added or deleted. This is not a problem and is working. What I cannot figure out how to do is to only send the email if a checkbox on the Add/Edit form is ticked by the user. This way the user can choose whether or not to send an email after update. Then, after the email is sent, I would like the checkbox to be cleared so that the next time the record is updated, the user will agaom have the option whether or not to send the email. |
|
J
|
Jane 6/2/2009 |
Jeremy, if values("FieldName")=1 then 'send email here end if
str = "update TableName set FieldName=0 where KeyField=" & keys("KeyField") dbConnection.Execute str
|