Autoupdate calc in form

M

mark909

Im creating a from where you type in values in two text boxes.

In a third text box ill have a calculation using the values from the two
text boxes, eg:

=[txtBox1]*[txtBox2]

Ill type the values in the first two text boxes but then ill have to change
from Form view back to design view and back again for the calculation to show.

I was wondering if there was a way to get the calculation to work
automatically or some other way of refreshing the screen without coming out
of the form? Maybe a button set up with a macro with run the calculation.

Any ideas?

Thanks in advance for help!
 
J

John W. Vinson

Im creating a from where you type in values in two text boxes.

In a third text box ill have a calculation using the values from the two
text boxes, eg:

=[txtBox1]*[txtBox2]

Ill type the values in the first two text boxes but then ill have to change
from Form view back to design view and back again for the calculation to show.

I was wondering if there was a way to get the calculation to work
automatically or some other way of refreshing the screen without coming out
of the form? Maybe a button set up with a macro with run the calculation.

Any ideas?

Thanks in advance for help!

What are the control sources of the other two textboxes? Are they bound to
table fields or unbound (blank control source), or are they also calculated?

This SHOULD recalculate as soon as you type something in either textbox *and
leave that textbox* - if you just type and leave the cursor there, Access
won't realize that you're done.
 

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