'assign the parameters (must be in correct order for SQL stored procedure or the order they are encountered in in the Access where clause
'PARAMETER 1
set objparam = objcommand.createparameter("@country",advarchar, adparaminput, 50)
objcommand.parameters.append objparam
objcommand.parameters("@country" = strcountry
' Execute the sql
set rs=objcommand.execute
'release memory re command object
set objparam=nothing
set objcommand=nothing
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.