I am using OLE db connection for a payroll system in vb. at first save of a transaction it will successfully save on the database but when i get back to pick another account to compute for its wage and try to save it,it will return an error saying there is a "syntax error on insert into".
here is my code:
com5 = "INSERT INTO PayrollReport Values('" & empno.Text & "','" & ename.Text & "','" & startdate.Text & "','" & _
cutdate.Text & "'," & bpay.Text & "," & computation.Text & "," & grosse.Text & "," & _
lwop.Text & "," & tardiness.Text & "," & tax.Text & "," & sssp.Text & "," & _
philp.Text & "," & hdmfp.Text & "," & sssl.Text & "," & hdmfl.Text & "," & _
advance.Text & "," & taxdue.Text & "," & nete.Text & "," & deduction.Text & "," & _
netpay.Text & "," & Employee.Esss.Text & "," & Employee.Ephil.Text & "," & Employee.Ehdmf.Text & ")"
MsgBox(" The " & ename.Text & "'s Record has been save!")
connect5()
Hope you'll help me with this please...