Advertisement
Advertisement
| 04.14.2008 at 06:22PM PDT, ID: 23322399 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: |
<!-- #INCLUDE File="../ADOVBS.INC" -->
Query = "SELECT * FROM ANC WHERE (AncID = " & iAncID & ") "
adoAnc.Open Query, Connect ,adopenstatic, adlockreadonly
if adoAnc.eof then
sqlq="INSERT INTO ANC (Anc1, From, To, Header, ID) "
sqlq=sqlq & "VALUES ('" & replace(request.form("Message"),"'","''") & "', '" & request.form("FromDt") & "','" & request.form("ToDt") & "', '" & replace(request.form("Head"),"'","''") & "', " & iID & ")"
end if
set adoCommand=Server.CreateObject("ADODB.Command")
Set adoCommand.ActiveConnection = Connect
adoCommand.CommandType = adCmdText
adoCommand.CommandText = sqlq
adoCommand.execute , , adExecuteNoRecords
|