Find My Error : ASP & VB Script Code
Find the error ("Wrong number of arguments or invalid property assignment") on line 17 (denoted by "L17")...
L1 <%@ LANGUAGE="VBSCRIPT" %>
L2
L3
L4
L5 <%
L6 Dim strQ, strW
L7 Dim objConn, objRS
L8 Dim objCmd, objParam
L9 Dim FirstField
L10 Set objConn = Server.CreateObject("ADODB.Connection")
L11 objConn.Open "SQL Trial Test", "adams2", "darkwood"
L12 strQ = "SELECT * FROM PNote"
L13 FirstField ="iComKey"
L14 sSql = "sp_NextKey '" & FirstField & "'"
L15 strP = objConn.Execute(sSql)
L16 strW = "INSERT INTO PNote (icomkey, ibuskey, crep, cactivity, cproduct, mcomment, lclosed, dcomment, cudf1, cudf2, cudf3) VALUES ('"
L17 strW = strW & strP & "','104','JOHN','Appointment','Other','mupup','26-03-07','1','3','7','7')"
L18 objConn.Execute strW
L19 set objRS = objConn.Execute(strQ)
%>
...code continues to irrelevant sections...