Data getting inserting successful . some case if fields data Empty , Null or other issue execution silently ignoring without any error or debug
Dim RS As Object
Dim RSS As Object
Dim Con As Object
Set RS = CreateObject("ADODB.RecordSet")
Set Con = CreateObject("ADODB.connection")
sql = "insert into wfile( testname,optz,subject,type,direction, question, opt1, opt2, ) values('" & testname & "','5','" & subject & "','" & type1 & "','" & direction1 & "','" & question & "','" & opt1 & "','" & opt2 & "')"
'MsgBox sql
Set RS = Con.Execute(sql)
Here How can throw error if unable to insert data