ADO RecordSet.Status value after AddNew is not adRecNew

In ADO I wanted to test if the current record  existing or has been added with AddNew.

I 've checked RecordSet.Status value and expected that after AddNew command the Status will be adRecNew(1)  but it returned adRecOK(0).

Possibly the value depends on cursor settings , in my code I had adOpenKeyset, adLockOptimistic.

Fortunately I found that I can use EditMode and check if value is adEditAdd (2)

posted @ Wednesday, October 19, 2005 12:30 PM

Print

Comments on this entry:

No comments posted yet.

Your comment:



 (will not be displayed)


 
 
 
 
 

Live Comment Preview:

 
«November»
SunMonTueWedThuFriSat
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345