This has been annoying me for two days now. I\'m updating an old ordering int
Try it with
objCmd.Parameters.Append objCmd.CreateParameter("@SearchQuery", adVarChar, adParamInput, 15, "'PalletCode'")
Notice that "'PalletCode'" has an additional set of single quotes inside of it.