Hello,
In the form, I'm using recordset to calculate data. Then auto fill the form with that data by:
frm.value1 = MyValue1
frm.value2 = MyValue2, etc.
All these values are dipslayed in the form (datasheet view). However, when I preview report, the last record didn't show calculation result (if only one record, then there was no calculation result).
If I move the record selector then preview, complete data are shown. With this, I conclude that after filling up data in the form, the real data is still kept in the buffer, so the report (query as control source) cannot show the most updated data yet.
I've tried using DoCmd.RunCommand acCmdSaveRecord but it didn't work out. Is there another way to save the most updated data into the record source? Which event will be the best one to invoke?
I greatly appreciate your help.
Tin Tin
In the form, I'm using recordset to calculate data. Then auto fill the form with that data by:
frm.value1 = MyValue1
frm.value2 = MyValue2, etc.
All these values are dipslayed in the form (datasheet view). However, when I preview report, the last record didn't show calculation result (if only one record, then there was no calculation result).
If I move the record selector then preview, complete data are shown. With this, I conclude that after filling up data in the form, the real data is still kept in the buffer, so the report (query as control source) cannot show the most updated data yet.
I've tried using DoCmd.RunCommand acCmdSaveRecord but it didn't work out. Is there another way to save the most updated data into the record source? Which event will be the best one to invoke?
I greatly appreciate your help.
Tin Tin