A
Albert
Hello expert,
I uses AccXP with ADO to access data in JET database. My form is bound to table which is a linked table. In Form_AfterUpdate event, I uses ADO to access form's current record which has just been updated (I think) by open connection to the source database of the linked table and select this record from the opening connection.
Problem is the data I read. It is not the updated data. If I wait for 4-5 seconds before start reading, I will get the correct data. I think it caused by some JET engine parameters regarding page timeout. With those parameters, Access wait for a specific time before data is actually written to disk.
1) Have anyone know How to force Access to flush pending data to disk immediately ? Please remeber the data is on the form. User edit and save it. Data is not manipulated by my program, Access does. I just want to read it in Form_AfterUpdate event.
2) If 1) can not, Have any function()/property to check whether data is still pending or not ? I will use it to loop my program until data is actually written to disk.
Regards,
Albert
I uses AccXP with ADO to access data in JET database. My form is bound to table which is a linked table. In Form_AfterUpdate event, I uses ADO to access form's current record which has just been updated (I think) by open connection to the source database of the linked table and select this record from the opening connection.
Problem is the data I read. It is not the updated data. If I wait for 4-5 seconds before start reading, I will get the correct data. I think it caused by some JET engine parameters regarding page timeout. With those parameters, Access wait for a specific time before data is actually written to disk.
1) Have anyone know How to force Access to flush pending data to disk immediately ? Please remeber the data is on the form. User edit and save it. Data is not manipulated by my program, Access does. I just want to read it in Form_AfterUpdate event.
2) If 1) can not, Have any function()/property to check whether data is still pending or not ? I will use it to loop my program until data is actually written to disk.
Regards,
Albert