Greetings everyone i really need some help about this error.
If (maleRbtn.Checked = True) Then
gender = 0
ElseIf (femaleRbtn.Checked = True) Then
gender = 1
End If
If (dietRbtn.Checked = True) Then
purpose = 0
ElseIf (BDrbtn.Checked = True) Then
purpose = 1
End If
Try
sqlCmd = New SqlCommand("INSERT INTO registered_cust_tbl([customer_Id],[customer_fname], [customer_lname], [customer_DoB], [customer_Contact], [customer_Email], " & _
" [customer_Address], [customer_Gender], [customer_Ailments], [customer_Username], [customer_Password], " & _
" [customer_Secret_Question],[customer_Secret_Answer],[customer_Purpose]) " & _
" VALUES ('" & firstNameTb.Text.Trim & "', '" & lastNameTb.Text.Trim & "', '" & DoBdtp.Text & "', '" & customerMPNo.Text & "', '" & _
emailTb.Text.Trim & "', '" & addressRtb.Text.Trim & "', '" & gender & "', '" & ailmentstxtBx.Text.Trim & "', '" & _
usernameTF.Text.Trim & "', '" & passwordTF.Text & "', '" & SecQuesBox.Text & "', '" & SecAnsBox.Text.Trim & "', '" & _
purpose & "' ", getConnect())
sqlCmd.ExecuteNonQuery()
getConnect.Close()
Catch ex As Exception
MsgBox(ex.Message)
MsgBox(sqlCmd)
End Try
I really appriciate your help thanks in advance