I have a recordset (Disconnected) that's opened for UpdateBatch usage.
certain values of the recordset are change via VBA code (say, Field1 increment by 1 for all rows/records).
The recordset is also the .recordset property of a subform (in datasheet view).
After changing the values of Field1, by using fields("Field1").value = ...., the new (not yet updated to server) values do not reflect in the GUI (subform), but the recordset values are correct (msg rst.fields("field1").value). The new data do not show in GUI untill I do a .updatebatch.
Why is that?
On the other hand, if the recordset is not open in a BatchOptimistic mode, i.e. just normal LockOptimistic, the updated values are reflected in the GUI (subform), but then that means I don't get a chance to "preview" the changes before new data are submitted to the server.
So, I have an issue here; You can Update, but can't preview (batch mode). Or, you can Update AND see the result at the same time (normal update).
All I want is to be able to preview first, then decide if I want to update (batch mode).
Help?
certain values of the recordset are change via VBA code (say, Field1 increment by 1 for all rows/records).
The recordset is also the .recordset property of a subform (in datasheet view).
After changing the values of Field1, by using fields("Field1").value = ...., the new (not yet updated to server) values do not reflect in the GUI (subform), but the recordset values are correct (msg rst.fields("field1").value). The new data do not show in GUI untill I do a .updatebatch.
Why is that?
On the other hand, if the recordset is not open in a BatchOptimistic mode, i.e. just normal LockOptimistic, the updated values are reflected in the GUI (subform), but then that means I don't get a chance to "preview" the changes before new data are submitted to the server.
So, I have an issue here; You can Update, but can't preview (batch mode). Or, you can Update AND see the result at the same time (normal update).
All I want is to be able to preview first, then decide if I want to update (batch mode).
Help?
Last edited: