S
stefania nj
Hi,
I need help understanding how the RecordsAffected property woks.
I am using the recordsaffected property to capture the number of
records inserted into a table.
the code is pretty simple
RQDb.Execute sql, dbFailOnError
lngCount = RQDb.RecordsAffected
However it is not working it returns 1 even when it fails to insert
the record due to a key violation and should return 0.
why?
If I run the query manually I get two messages
1) You're about to append 1 row(s) the I click on yes and I get the
other message
2) Microsoft Access cannot append all the records in the append query.
Thank you in advance for your help. Stefania
Note. I am using Access 2003
I need help understanding how the RecordsAffected property woks.
I am using the recordsaffected property to capture the number of
records inserted into a table.
the code is pretty simple
RQDb.Execute sql, dbFailOnError
lngCount = RQDb.RecordsAffected
However it is not working it returns 1 even when it fails to insert
the record due to a key violation and should return 0.
why?
If I run the query manually I get two messages
1) You're about to append 1 row(s) the I click on yes and I get the
other message
2) Microsoft Access cannot append all the records in the append query.
Thank you in advance for your help. Stefania
Note. I am using Access 2003