Whenever I have
Dim catID as integer
And I use this in a query like this:
cmd.CommandText = "select * from categories where parentid='" + catID + "'"
I get:
Conversion from string
select * from categories where pto typeDoubleis not valid.
Why is it so?
The parentid datatype in sql is integer.
Try
if
parentidis a numeric field in your database then you’ll need