Hi everyone!
This has stomped me. I have a mainform that has 2 subforms (Subform A and Subform B). "SubformA" lets the user add and delete records in datasheet view, while SubformB serves as a summary total of the records that have been added, and is locked. I have made an after update event to requery "SubformB" using the following code:
Me.Parent.SubformB.Requery
I also put that code on the "on delete" event of "SubformA." After I add or edit a record, "SubformB" reflects the changes. However, when I delete records using "SubformA," the results is not reflected on "SubformB," I have to click on any field on "SubformB" and press "F5" to refresh "SubformB." This is driving me crazy. Any help would really be appreciated.
Also, "SubformB" has a recordsource of a sum query of a union query.
Thanks!
PS: Changed the code.
This has stomped me. I have a mainform that has 2 subforms (Subform A and Subform B). "SubformA" lets the user add and delete records in datasheet view, while SubformB serves as a summary total of the records that have been added, and is locked. I have made an after update event to requery "SubformB" using the following code:
Me.Parent.SubformB.Requery
I also put that code on the "on delete" event of "SubformA." After I add or edit a record, "SubformB" reflects the changes. However, when I delete records using "SubformA," the results is not reflected on "SubformB," I have to click on any field on "SubformB" and press "F5" to refresh "SubformB." This is driving me crazy. Any help would really be appreciated.
Also, "SubformB" has a recordsource of a sum query of a union query.
Thanks!
PS: Changed the code.
Last edited: