M
Markm-s
I'm inserting into a database and need to know the number of records that
where entered and the number of errors, using this
With CurrentDb
.Execute strSQL_insert
If Line_Number = 80 Then
MsgBox (.RecordsAffected)
End If
If .RecordsAffected = 1 Then
Good_Records = Good_Records + 1
Else
Bad_Records = Bad_Records + 1
End If
End With
But the recordaffected comes out with 0.
Thanks
where entered and the number of errors, using this
With CurrentDb
.Execute strSQL_insert
If Line_Number = 80 Then
MsgBox (.RecordsAffected)
End If
If .RecordsAffected = 1 Then
Good_Records = Good_Records + 1
Else
Bad_Records = Bad_Records + 1
End If
End With
But the recordaffected comes out with 0.
Thanks