on my frmAddTests, i have a combobox "category" which displays the name of category (the displayMember is "category name", the valueMember is "category ID". I have this line of code to add a value into a column "categoryID" to the table "tests" when adding a new test.
When add a test, the app should look for the categoryID that corresponds to the category name selected in the combobox, but at runtime it throws this error: "Input string was not a correct format". Is there anything wrong with my code? or maybe it's caused by something else? plz help
VB.NET:
SqlCommandAddTest.Parameters(3).Value = ComboBoxCategory.ValueMember