Sending e-mail in add page of child table with master table fields |
3/16/2006 7:17:37 AM |
ASPRunnerPro General questions | |
(ASPRunner version 3.2) 'send mail
|
|
![]() |
Admin 3/16/2006 |
Hi, set rstemp = Server.CreateObject ("ADODB.Recordset") rstemp.open "select * from mastertable where id=" & Session(strTableName & "_masterkey"), dbConnection strMessage=" Field1: " & rs("Field1")
|
|
orit author 3/16/2006 |
I added the code: set rstemp = Server.CreateObject ("ADODB.Recordset")
objCDOSYSMail.HTMLBody = "<table cellpadding=6 border=1 cellspacing=0 bordercolor=white bgcolor=efefef><tr><td><font face=arial size=2>Comment Date</td><td><font face=arial size=2>" & rs("Owner_Comment_Date") & "</td></tr><tr><td><font face=arial size=2>Comment Date</td><td><font face=arial size=2>" & rstemp("Description") & "</td></tr><tr><td><font face=arial size=2>Comment</td><td><font face=arial size=2>" & rs("Owner_Comment") & "</td></tr></table>"
Microsoft OLE DB Provider for ODBC Drivers error '80040e14' [Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'id='. /Marketing/Applications/MAIR/Comments_add.asp, line 348
|
![]() |
Admin 3/17/2006 |
Hi, Session(strTableName & "_masterkey")
rs("ForeignKey")
|
|
orit author 3/17/2006 |
Now the code looks like: set rstemp = Server.CreateObject ("ADODB.Recordset")
|
![]() |
Admin 3/19/2006 |
Make sure recordset RS is open when this code is called. |
|
orit author 3/20/2006 |
How to do that (Make sure recordset RS is open when this code is called)? |
![]() |
Admin 3/20/2006 |
Make sure recordset RS is open when this code is called.
|
|
orit author 3/22/2006 |
I made sure that the code is placed when RS is opened. I'm getting now the error: ADODB.Recordset error '800a0cc1' Item cannot be found in the collection corresponding to the requested name or ordinal. /Marketing/Applications/MAIR/Comments_add.asp, line 643
|
![]() |
Admin 3/23/2006 |
The error occurs because you try to access a field in the fields collection that is not in the Recordset. |
|
orit author 3/23/2006 |
Line 643 was: rstemp.open "select * from AIR_All where id=" & rs("AIR_No"), dbConnection
strSQL="select " & AddWrappers("CommentID") & ", " & AddWrappers("AIR_NO") & ", " & AddWrappers("Owner") & ", " & AddWrappers("Owner_Comment_Date") & ", " & AddWrappers("Owner_Comment") & ", " & AddWrappers("Send_Notification") & ", "
error '80020009' Exception occurred. /Marketing/Applications/MAIR/Comments_add.asp, line 643
rstemp.open "select * from AIR_All where id=" & rs("AIR_No"), dbConnection
|
![]() |
Admin 3/24/2006 |
Orit, |
|
orit author 3/26/2006 |
So no way to do that? |
![]() |
Admin 3/26/2006 |
It impossible to tell you what's wrong without seeing the whole code. |
|
orit author 6/27/2006 |
OK, I'm working with ASPRunner 4.0. Function BeforeAdd(dict) |