hi
i have textbox and i want to insert this text into access db but the field in db is number so i tried both functions val and cint to convert text to integer while iam inserting at the same time but i got error : Input string was not in correct format!

this is my code:

cmcontact.CommandText = "insert into table1_local(id) values" + (Val(Me.TextBox1.Text)) + ";"

why you don't make user to do not input string/char inputs? make them to input numbers only. so you don't have to convert input from text to number.