Converting in VBA Access -
i have question converting in vba. made button in form , when press it, should make update in database table, error:
arithmetic overflow error converting numeric data type numeric how can solve problem? here code:
private sub inserare_click() dim strsql string dim rst new adodb.recordset strsql = "update dbo.soferi_test set number= '" & me![subform_soferi].form!certificat_cipti & _ "',drivers= '" & me![subform_soferi].form!categorii_permis & _ "' idno = " & forms!forma_redactare_soferi!idno call attserv(strsql, rst) msgbox ("datele au fost introduse cu success") end sub
number reserved word. bracket name in update statement db engine knows it's supposed field name.
strsql = "update dbo.soferi_test set [number]= '" & if change doesn't resolve problem, inspect completed sql statement. insert line after store string strsql.
debug.print strsql you can view output in immediate window (go there ctrl+g). can copy statement text sql view of new access query testing. add statement question if can't work , tell whether same or different error message.
it may show code attserv procedure uses strsql.
Comments
Post a Comment