我在VBA中转换时遇到问题。我做了一个表格一个按钮,当我按下它,它应该更新我的数据库表中,但我得到一个错误:在VBA Access中转换
arithmetic overflow error converting numeric to data type numeric
如何才能解决这个问题呢?这里是我的代码:
Private Sub Inserare_Click()
Dim strSQL As String
Dim rst As New ADODB.Recordset
strSQL = "UPDATE dbo.Soferi_test SET number= '" &
Me![subform_soferi].Form!certificat_cipti & _
"',drivers= '" & Me![subform_soferi].Form!categorii_permis & _
"' WHERE IDNO = " & Forms!Forma_redactare_soferi!IDNO
Call AttServ(strSQL, rst)
MsgBox ("Datele au fost introduse cu success")
End Sub
SQL注入任何人 – 2013-05-03 08:33:12
可以给你一个解决方案? – Sergio 2013-05-03 08:36:17
你可以简化这个例子 - 什么类型的certificat_cipti,categorii_permis等? – 2013-05-03 08:41:03