To be 100% honest with you, I do not use prepared statements like you do above since that is only good to execute one certain query; I use a wrapper class that I can send any sql command to and have a result returned to my applications (if the query is to return a resultset obviously).
In any case it has been a long time since I have looked at
VB code prior to .NET so I may be a little rusty, but, your params you setup as input params, length of 10 but I don't see where you supply a variable to the parameter itself.
In .NET a parameterized query looks something like this:
SELECT * From table Where valuea = @value1 AND valueB = @valueB
our command object would then look like this:
objCommand.Parameters.Add("@value1", txtValueA.text) 'You can also supply the DBType, length, etc as an overload
objCommand.Parameters.Add("@value2", txtValueB.text)
I see where you have added your parameters, their types and such, but I don't see where you point it to a physical value?
--Stole this from a moderator
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.