Getting error "OleDBException was Unhandled: No value given for one or more required parameters" while submitting the insert query through VB.Net.
Below is the sample code I am using:
custid = txtcusid.Text
custname = txtcustname.Text
age = txtage.Text
gender = cmbgender.SelectedItem.ToString
phno = txtcontact.Text
custadd = txtadd.Text
comm.CommandText = "INSERT INTO Cust_Details(Cust_ID, CustName, Gender, Age, Phone, CustAddress) Values (" & custid & ", " & custname & "," & gender & "," & age & "," & phno & "," & custadd & ")"
comm.ExecuteScalar()
Please help to resolve this...