Sage 100 Premium 2022 - button script on Sales Order Header to update the value of a UDF from another database.
Portion of script::
59 sSQL = "DEX.dbo.spS100_WOStatusForSO"
60 oCmd.CommandType = 4 'stored procedure
61 oCmd.commandtext = sSQL
62 oCmd.NamedParameters = true
63 oCmd.Parameters.Append (oCmd.CreateParameter("@SO",adVarChar,adParamInput,7,sSO))
64 oCmd.Parameters.Append (oCmd.CreateParameter("@ST",adVarChar,adParamOutput,50))
65 oCmd.Execute()
OLE Error Number : 3001
Description : Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
Language : VBScript
Script Line : 63
Multiple sites googled tell me my code is correct.
MAS_User has been granted execute permissions on the stored procedure
What am I missing?
#scripting #buttonscript
Phil
------------------------------
Phil McIntosh
Friendly Systems, Inc.
------------------------------