How to automatically update text boxes (NEED IMMEDIATE HELP!!)

  • Thread starter PLEASE HELP ME. NOW !!!
  • Start date
P

PLEASE HELP ME. NOW !!!

I have three text boxes. When a user manually inputs data in one text box, I
want the other two boxes updated automatically.

In other words, everytime Textbox 1 is updated, Textbox 2 and Textbox 3
automatically are updated.



For example,


TextBox 1 Textbox 2 (automatically fills in 100 x .5)
..5 is a rate
User enters 100 50


Textbox 3 (automatically fills in Textbox 1 + Textbox 2)
150

All 3 values are stored in a Table.

tblResults

txtVal1 txtVal2 txtValTotals
100 50 150
 
T

tiger0268 via AccessMonster.com

You can try firing on the after update event like so:

Air Code:

Private Sub Textbox1_AfterUpdate()
Dim txtbox1 as Integer
txtbox1 = Me.Textbox 1.Value
me.Textbox2 = txtbox1*.5
me.Textbox3 = me.textbox2 + me.textbox1

End Sub
 

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