Just trying to pass a 5-letter string value (ie, “SSIID”) from my VBA project to a parameter in my sql stored procedure but apparently I’m mixing up the types or something is going wrong. The error is:
Parameter object is improperly defined.
I’ve looked up the comparable data types here http://www.w3schools.com/ado/ado_datatypes.asp and tried to match but to no avail. Any ideas?
VBA
.CreateParameter("@Location", adVarChar, adParamInput, , "SSIID")
SQL Parameter
@Location varchar
CreateParameter Method (ADO)
e.g.