S
Sheryl
My VBA program uses recordsets defined via e.g.
'Dim rs as DAO.Recordset', and I am updating several
fields in about 3000 records. For each field I must do a
lookup in another even larger file using the primary key
of the record.
I'd like to batch this process, by changing (.Edit) one
field at a time and saving (.Update) them all at the end.
I see from the Help that .Update supports a batch option,
but how do I use it?
When I use an update SQL statement instead of VBA it goes
like lightning, and I'm sure it's because all the records
are updated at the end.
'Dim rs as DAO.Recordset', and I am updating several
fields in about 3000 records. For each field I must do a
lookup in another even larger file using the primary key
of the record.
I'd like to batch this process, by changing (.Edit) one
field at a time and saving (.Update) them all at the end.
I see from the Help that .Update supports a batch option,
but how do I use it?
When I use an update SQL statement instead of VBA it goes
like lightning, and I'm sure it's because all the records
are updated at the end.