Show us what you're trying to use now. That will help us see what you're
doing and what might need to be changed.
Dim codecustomer, sqlstring As String
codecustomer = rslist.Fields("code")
sqlstring = " INSERT INTO difference ( custcode, residual,
total ) values ('" & codecustomer & "'," & residual & "," & total & ")"
DoCmd.RunSQL sqlstring
Residual or total might be 12,2 so it takes as 2 values
How can I change my sqlstring to bypass the problem?
> Show us what you're trying to use now. That will help us see what you're
> doing and what might need to be changed.
[quoted text clipped - 4 lines]
>>
>> Thank in advace
Ken Snell (MVP) - 30 Nov 2005 16:53 GMT
Enclose the values inside ' characters:
sqlstring = " INSERT INTO difference ( custcode, residual,
total ) values ('" & codecustomer & "', '" & residual & "', '" & total &
"')"

Signature
Ken Snell
<MS ACCESS MVP>
> Dim codecustomer, sqlstring As String
> codecustomer = rslist.Fields("code")
[quoted text clipped - 12 lines]
>>>
>>> Thank in advace