I have sql for insert and updating records. At the end, I use the db.RecordsAffected which sometimes seems to work and sometimes not. For example, I just updated my existing data on a form and although the changes were inserted to the databae, the db.recordsaffected was still 0. Does anyone have any ideas why it wouldn't work and/or if there is another way to make sure that my inserts & updates are working?
The code I use is:
Thanks
Lhuffst
The code I use is:
Code:
If db.RecordsAffected = 0 Then
MsgBox "Your new Contract Was Not Updated."
'nill = AddErrorLog(0,"New Contract Was Not Updated!", "CitationUpdate", ssql)
CitationUpdate = False
Exit Function
End If
Lhuffst