charon
05-13-2003, 05:20 AM
hi,
The UpdateBatch method is used to save all changes in a Recordset to the database. Just assume that
I have 10 records to save and all these records must save at the same time, if one fail, all must
fail. i.e:
For k = 1 to numRecord
objRS.AddNew
objRS("Name") = Name
objRS("IC") = Ic
objRS("Job") = Job
objRS.MoveNext
Next
objRS.UpdateBatch
In order to make sure that either UPDATE ALL or NOT UPDATE ALL, I'm thinking of use ADO UpdateBatch method,
is it OK????? Good way??
The UpdateBatch method is used to save all changes in a Recordset to the database. Just assume that
I have 10 records to save and all these records must save at the same time, if one fail, all must
fail. i.e:
For k = 1 to numRecord
objRS.AddNew
objRS("Name") = Name
objRS("IC") = Ic
objRS("Job") = Job
objRS.MoveNext
Next
objRS.UpdateBatch
In order to make sure that either UPDATE ALL or NOT UPDATE ALL, I'm thinking of use ADO UpdateBatch method,
is it OK????? Good way??