I have a Stored Proc which works when run directly, but when trying to run through form I get error message. Does anybody have a suggestion??
Thanks a lot
Eric
With cmd
.ActiveConnection = cnn
.CommandText = "dbo.SP_TravelRate"
.CommandType = adCmdStoredProc
.Parameters.Append .CreateParameter("@EMPLOYEE_ID", adInteger, adParamInput, Forms!frmwork_entry.SubFrmWork.Form!Employee_ID)
.Parameters.Append .CreateParameter("@PROJECT_ID", adInteger, adParamInput, Forms!frmwork_entry.SubFrmWork.Form!Proj_ID)
.Execute
error message
Procedure "SP_TravelRate" expects parameter '@PROJECT_ID', which was not supplied
End With
Thanks a lot
Eric
With cmd
.ActiveConnection = cnn
.CommandText = "dbo.SP_TravelRate"
.CommandType = adCmdStoredProc
.Parameters.Append .CreateParameter("@EMPLOYEE_ID", adInteger, adParamInput, Forms!frmwork_entry.SubFrmWork.Form!Employee_ID)
.Parameters.Append .CreateParameter("@PROJECT_ID", adInteger, adParamInput, Forms!frmwork_entry.SubFrmWork.Form!Proj_ID)
.Execute
error message
Procedure "SP_TravelRate" expects parameter '@PROJECT_ID', which was not supplied
End With