I have a main form with 2 subforms, each subform has a option group box reconciled and unreconciled. I need a running total of all records which are flagged by the reconciled check box.
I was attempting to handle this by having the group option check box update the field QRRNCD to 1. Then I have a query that sums the value of all records on the table where QRRNCD = 1.
I was then looking at adding another subform (controlamount1 subform) into the main form with just the value field from that query being shown.
I.e. The subform with the option group box and the controlamount1 subform are both subforms of the main form but not of each other.
Problems:
1)I cannot get requery to work as it keeps coming back with the error; You can't use the applyfilter action on this window.
I have tried several other methods such as openform and openquery the do work but obviously do open a new window.
2)The summed value is always one record behind i.e. the update seem to be occuring after the query has been opened even though I attached the command to the after update action in the properties of the option group box.
I am already using the requery command in the main form but that was simple as the 2 subforms are its source so I have no need to give a control name.
I have seen other advice on this type of issue but it is a bit much for me to handle.
Any help would be greatly appreciated!
Cheers
BHoran
I was attempting to handle this by having the group option check box update the field QRRNCD to 1. Then I have a query that sums the value of all records on the table where QRRNCD = 1.
I was then looking at adding another subform (controlamount1 subform) into the main form with just the value field from that query being shown.
I.e. The subform with the option group box and the controlamount1 subform are both subforms of the main form but not of each other.
Problems:
1)I cannot get requery to work as it keeps coming back with the error; You can't use the applyfilter action on this window.
I have tried several other methods such as openform and openquery the do work but obviously do open a new window.
2)The summed value is always one record behind i.e. the update seem to be occuring after the query has been opened even though I attached the command to the after update action in the properties of the option group box.
I am already using the requery command in the main form but that was simple as the 2 subforms are its source so I have no need to give a control name.
I have seen other advice on this type of issue but it is a bit much for me to handle.
Any help would be greatly appreciated!
Cheers
BHoran