How to populate these columns?

D

Dorian

I have a form bound to my table and a subform for a related table. The main
form contains two calculated controls TotalPaid and BalanceDue. These
controls are unbound and are calculated based on the contents of the subform
and other controls on the main form. I'd like the contents of these two
controls to go into hidden bound controls to populate columns in the main
table. My question is what event to do this in. The control source for the
calculated controls is set in the Current Event. Would the BeforeUpdate event
be the one?
Yes, I know its not correct to have calculated values in my table but that
is the way it was designed and I cannot change it. Thanks.
 
R

Rick Brandt

I have a form bound to my table and a subform for a related table. The
main form contains two calculated controls TotalPaid and BalanceDue.
These controls are unbound and are calculated based on the contents of
the subform and other controls on the main form. I'd like the contents
of these two controls to go into hidden bound controls to populate
columns in the main table. My question is what event to do this in. The
control source for the calculated controls is set in the Current Event.
Would the BeforeUpdate event be the one?
Yes, I know its not correct to have calculated values in my table but
that is the way it was designed and I cannot change it. Thanks.

BeforeUpdate is the correct event.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top