If the error is tripping on the lines with the CreateParameter calls, try changing (e.g.)
.Parameters.Append.CreateP
to
.Parameters.Append.CreateP
Main Topics
Browse All TopicsHi,
I am recieving the title error from the code below, it will be to do with the handling of the form request fields but I thought I thought the syntax looked ok?
Set Conn = Server.CreateObject("ADODB
Conn.Open objConn
Set objCmd = Server.CreateObject("ADODB
with objCmd
.ActiveConnectionConnectio
.CommandText = "dbo.wbMcdAdd"
.CommandType = adCmdStoredProc
'Set the Command object parameters
.Parameters.Append.CreateP
.Parameters.Append.CreateP
.Parameters.Append.CreateP
.Parameters.Append.CreateP
.Parameters.Append.CreateP
.Parameters.Append.CreateP
.Parameters.Append.CreateP
.Parameters.Append.CreateP
.Parameters.Append.CreateP
.Parameters.Append.CreateP
.Parameters.Append .CreateParameter("@RESULTS
.Execute
end with
'Dereference the database objects
Set objCmd = Nothing
NUMRESLT = .Parameters("RESULTS").Val
Conn.Close
Set Conn = Nothing
Many thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
With further researching I have come up with the following, which seems to work in that I don't get any errors, the records are being inserted , however I am not getting any output value?
Set Conn = Server.CreateObject("ADODB
Conn.Open objConn
Set objCmd = Server.CreateObject("ADODB
with objCmd
.ActiveConnection = Conn
.CommandText = "dbo.wbMcdAdd"
.CommandType = adCmdStoredProc
'Set the Command object parameters
.Parameters.Append .CreateParameter("RESULTS"
.Parameters.Append .CreateParameter("@COMPID"
.Parameters.Append .CreateParameter("@COSTID"
.Parameters.Append .CreateParameter("@EMPID",
.Parameters.Append .CreateParameter("@TYPEID"
.Parameters.Append .CreateParameter("@TELNUM"
.Parameters.Append .CreateParameter("@TELNUMR
.Parameters.Append .CreateParameter("@ACCNUM"
.Parameters.Append .CreateParameter("@MAKE", adVarChar, adParamInput, 20) .Parameters.Append .CreateParameter("@MODEL",
.Parameters.Append .CreateParameter("@SERNUM"
.Parameters.Append .CreateParameter("@RESULTS
'Set the parameter values
.Parameters("@COMPID") = Request("Compid")
.Parameters("@COSTID")= Request("Cost")
.Parameters("@EMPID")= Request("empid")
.Parameters("@TYPEID")= Request("device")
.Parameters("@TELNUM")= Request("number")
.Parameters("@TELNUMRANGE"
.Parameters("@ACCNUM")= Request("accnum")
.Parameters("@MAKE")= Request("make")
.Parameters("@MODEL")= Request("model")
.Parameters("@SERNUM")= Request("sernum")
telDET = .Parameters("@RESULTS")
.Execute
end with
'Dereference the database objects
Set objCmd = Nothing
Conn.Close
Set Conn = Nothing
Business Accounts
Answer for Membership
by: ddrudikPosted on 2007-06-29 at 08:48:32ID: 19390891
This line appears to be outside of your With/End With section: ue
NUMRESLT = .Parameters("RESULTS").Val