rakishoner
Technical User
Any idea what would cause this in my code?
Thanks in advance.
============================================================
Microsoft VBScript runtime error '800a005e'
Invalid use of Null: 'cstr'
============================================================
For i = 1 to Request.Form("Topic"
.Count
set objMail = CreateObject("CDONTS.NewMail"
TempInterest = TempInterest & Request.Form("Topic"
.Item(i) & " "
DistribSQL = DistribSQL & " or CIInterests.InterestName = '" _
& Request.Form("Topic"
.Item(i) & "' "
set RSEmailResponses = conn.execute ("select * from CIInterests " _
& " where InterestName = '" & Request.Form("Topic"
.Item(i) & "'"
objnewMail.Send RSEmailResponses("RespondTo"
,Request.Form("EmailAddress"
,_
RSEmailResponses("MessageSubject"
,cstr(RSEmailResponses("MessageText"
)
set objmail = nothing
Next
Thanks in advance.
============================================================
Microsoft VBScript runtime error '800a005e'
Invalid use of Null: 'cstr'
============================================================
For i = 1 to Request.Form("Topic"
set objMail = CreateObject("CDONTS.NewMail"
TempInterest = TempInterest & Request.Form("Topic"
DistribSQL = DistribSQL & " or CIInterests.InterestName = '" _
& Request.Form("Topic"
set RSEmailResponses = conn.execute ("select * from CIInterests " _
& " where InterestName = '" & Request.Form("Topic"
objnewMail.Send RSEmailResponses("RespondTo"
RSEmailResponses("MessageSubject"
set objmail = nothing
Next