josephsiah
Programmer
Can someone please help me with the following code? I am getting the following error message:
Error Type:
Provider (0x80020005)
Type mismatch.
ASP CODE:
Dim objCmd_lb
Dim txtHin, txtYearBuilt, txtCertNumber, v_PassFormatCheck
txtHin = Request.Form("txtHIN")
txtYearBuilt = Request.Form("txtYearBuilt")
txtCertNumber = Request.Form("txtCertNumber")
'-- Create new command object
Set objCmd_lb = Server.CreateObject("ADODB.Command")
objCmd_lb.ActiveConnection = Connection()
objCmd_lb.CommandText = "Wrd_dba.VALIDATIONHIN"
objCmd_lb.CommandType = adCmdStoredProc
'On Error Resume Next
objCmd_lb.Parameters.Append = objCmd_lb.CreateParameter("V_HIN", adVarChar, adParamInput, txtHin)
objCmd_lb.Parameters.Append = objCmd_lb.CreateParameter("V_YearBuilt", adInteger, adParamInput, txtYearBuilt)
objCmd_lb.Parameters.Append = objCmd_lb.CreateParameter("v_CertificateNumber", adVarChar, adParamInput, txtCertNumber)
objCmd_lb.Parameters.Append = objCmd_lb.CreateParameter("v_PassFormatCheck", adInteger, adParamOutput)
objCmd_lb.Execute
v_PassFormatCheck = objCmd_lb.Parameters("V_PassFormatCheck")
Stored Procedure:
CREATE OR REPLACE PROCEDURE ValidationHin (
V_Hin IN varchar2,
V_YearBuilt IN OUT number,
v_CertificateNumber IN varchar2,
v_PassFormatCheck OUT number)
Error Type:
Provider (0x80020005)
Type mismatch.
ASP CODE:
Dim objCmd_lb
Dim txtHin, txtYearBuilt, txtCertNumber, v_PassFormatCheck
txtHin = Request.Form("txtHIN")
txtYearBuilt = Request.Form("txtYearBuilt")
txtCertNumber = Request.Form("txtCertNumber")
'-- Create new command object
Set objCmd_lb = Server.CreateObject("ADODB.Command")
objCmd_lb.ActiveConnection = Connection()
objCmd_lb.CommandText = "Wrd_dba.VALIDATIONHIN"
objCmd_lb.CommandType = adCmdStoredProc
'On Error Resume Next
objCmd_lb.Parameters.Append = objCmd_lb.CreateParameter("V_HIN", adVarChar, adParamInput, txtHin)
objCmd_lb.Parameters.Append = objCmd_lb.CreateParameter("V_YearBuilt", adInteger, adParamInput, txtYearBuilt)
objCmd_lb.Parameters.Append = objCmd_lb.CreateParameter("v_CertificateNumber", adVarChar, adParamInput, txtCertNumber)
objCmd_lb.Parameters.Append = objCmd_lb.CreateParameter("v_PassFormatCheck", adInteger, adParamOutput)
objCmd_lb.Execute
v_PassFormatCheck = objCmd_lb.Parameters("V_PassFormatCheck")
Stored Procedure:
CREATE OR REPLACE PROCEDURE ValidationHin (
V_Hin IN varchar2,
V_YearBuilt IN OUT number,
v_CertificateNumber IN varchar2,
v_PassFormatCheck OUT number)