Subform calculation

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

Here's my problem. I have a form with 3 subforms on it. The subforms are
linked to an option group that, if clicked, filters the subforms' underlying
query. The subforms are then updated and display the new values. Works
fine. On my form, I have a text box to compute totals from all three
subforms. The first time I make a selection the total computes correctly.
However, on all subsequent selections, I get #ERROR for the text box value
(the subforms still load correctly). Why is this happening and what is my
solution?

Thanks
 
The first time I make a selection the total computes correctly.
However, on all subsequent selections, I get #ERROR for the text box value
(the subforms still load correctly). Why is this happening and what is my
solution?

Well, you'ld need to post your code to diagnose it for sure - but try
putting in a line

Me.Recalc

in the event which changes the data being totalled.

John W. Vinson[MVP]
 

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

Back
Top