S
Stephanie
Greetings-
I have code that does what it's suppose to do, in that it immediately
updates a rolling total for me.
My form is Individuals. Individuals has a subform DuesItemLine that itself
has a subform PaymentItemLine. My rolling total is on a subform
(sfrmITABucksSum2a) on form Individuals, and is affected by changes in
PaymentItemLine.
However, when I'm in the form and not updating the rolling total and then
exit the form, I get a run-time error '2450' Access can't find the form
'Individuals' refered to in vba code. I think my code may be referring to
the incorrect "level" of subform, and yet the code performs the update to the
rolling total correctly- but doesn't always have a smooth exit:
Private Sub Form_AfterUpdate() 'this is on PaymentItemLine
Me.Dirty = False
Forms!Individuals!sfrmITABucksSum2a.Form.Requery
End Sub
I'd appreciate any insight.
I have code that does what it's suppose to do, in that it immediately
updates a rolling total for me.
My form is Individuals. Individuals has a subform DuesItemLine that itself
has a subform PaymentItemLine. My rolling total is on a subform
(sfrmITABucksSum2a) on form Individuals, and is affected by changes in
PaymentItemLine.
However, when I'm in the form and not updating the rolling total and then
exit the form, I get a run-time error '2450' Access can't find the form
'Individuals' refered to in vba code. I think my code may be referring to
the incorrect "level" of subform, and yet the code performs the update to the
rolling total correctly- but doesn't always have a smooth exit:
Private Sub Form_AfterUpdate() 'this is on PaymentItemLine
Me.Dirty = False
Forms!Individuals!sfrmITABucksSum2a.Form.Requery
End Sub
I'd appreciate any insight.