Use
Cmd.Parameters.Add("?ChapterID",nChapterID)
(Note the question mark <<?>> before the parameter name.)
Yes, while browsing for a fix, I recently found this. In addition to this,
the parameter name in the SP is actually "nChapterID", so I changed this
code to read, "Cmd.Parameters.Add("?nChapterID",nChapterID)" However, I'm
still getting the same error. I've done the same with the "Invno"
parameter:
"Cmd.Parameters.Add("?cInvNo",MySQLDBType.VarChar)". This hasn't made any
difference either. This is getting very frustrating.