N
Newbie
Hi,
I am using Access 2002 with SQL Server 2000
I have a stored procedure that returns records based on the followung 6
parameters (primary key) however when it runs it comes back with the error:
-2147467259 (80004005) The precision is invalid
My table structure that the procedure runs on is:
PONo char 6
Supplier char 7
Jnl decimal 5
JnlEnt decimal 5
GRNSource char 1
GRN char 9
My code does the following (the variable ares public variants):
params.Append cmd.CreateParameter("@RETURN_VALUE", adInteger,
adParamReturnValue, 0)
params.Append cmd.CreateParameter("@PONo", adVarChar, adParamInput, 6)
params.Append cmd.CreateParameter("@Jnl", adDecimal, adParamInput, 5)
params.Append cmd.CreateParameter("@JnlEnt", adDecimal, adParamInput, 5)
params.Append cmd.CreateParameter("@GRN", adChar, adParamInput, 9)
params.Append cmd.CreateParameter("@Supplier", adChar, adParamInput, 7)
params.Append cmd.CreateParameter("@GRNSource", adChar, adParamInput, 1)
params("@PONo") = mPONo
params("@Jnl") = mJnl
params("@JnlEnt") = mJnlEnt
params("@GRN") = mGRN
params("@Supplier") = mSupplier
params("@GRNSource") = mGRNSource
Set rs = cmd.Execute
what am I doing wrong
A
I am using Access 2002 with SQL Server 2000
I have a stored procedure that returns records based on the followung 6
parameters (primary key) however when it runs it comes back with the error:
-2147467259 (80004005) The precision is invalid
My table structure that the procedure runs on is:
PONo char 6
Supplier char 7
Jnl decimal 5
JnlEnt decimal 5
GRNSource char 1
GRN char 9
My code does the following (the variable ares public variants):
params.Append cmd.CreateParameter("@RETURN_VALUE", adInteger,
adParamReturnValue, 0)
params.Append cmd.CreateParameter("@PONo", adVarChar, adParamInput, 6)
params.Append cmd.CreateParameter("@Jnl", adDecimal, adParamInput, 5)
params.Append cmd.CreateParameter("@JnlEnt", adDecimal, adParamInput, 5)
params.Append cmd.CreateParameter("@GRN", adChar, adParamInput, 9)
params.Append cmd.CreateParameter("@Supplier", adChar, adParamInput, 7)
params.Append cmd.CreateParameter("@GRNSource", adChar, adParamInput, 1)
params("@PONo") = mPONo
params("@Jnl") = mJnl
params("@JnlEnt") = mJnlEnt
params("@GRN") = mGRN
params("@Supplier") = mSupplier
params("@GRNSource") = mGRNSource
Set rs = cmd.Execute
what am I doing wrong
A