Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CommitTransComplete 2

Status
Not open for further replies.

Deadline

Programmer
Feb 28, 2001
367
US
Hi,
I am trying to update two three tables and if all of them were successfully updated, I need to send an email to the user..

I am using cn.BeginTrans and cn.CommitTrans route. My backend is SQL Server 7.

Why doesn't the cn.CommitTransComplete method work for me ?
I mean , I have given the event script inside a <%%> tags. Even then it doesn't work, why ? Here is a code snippet:
Code:
<%

Sub cn_CommitTransComplete
'THE AUTOEMAIL-
Set objCDOMail = Server.CreateObject(&quot;CDONTS.NewMail&quot;)
'.... and so on...
%>

In advance, Thanks!

RR


 
Have you used the withevents keyword
Dim WithEvents CN as ADODB.Connection
 
Steve,
Nope.. I haven't done that.. Will that help ? Thanks!

RR


 
Hi Steve and FoxBox,

DOes ASP support
Code:
WithEvents
Keyword ? Thanks!

RR


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top