vb の給与計算システムに OLE db 接続を使用しています。トランザクションを最初に保存すると、データベースに正常に保存されますが、賃金を計算する別のアカウントを選択して保存しようとすると、「挿入時に構文エラーがある」というエラーが返されます。
ここに私のコードがあります:
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()
これで私を助けてくれることを願っています...