*2?

M

Mario

I have a textbox(txtbox) and another one (txtbox2) which must display the double value of the first.
At the AfterUpdate Property of the first textbox what function should I write in order to automaticaly update the value of the second textbos with the double value of the first

Me.txtbox2.ControlSource =

Hopeing for an answer at this basic question ... :)
 
A

Alan Fisher

-----Original Message-----
I have a textbox(txtbox) and another one (txtbox2) which
must display the double value of the first.
At the AfterUpdate Property of the first textbox what
function should I write in order to automaticaly update
the value of the second textbos with the double value of
the first?
Me.txtbox2.ControlSource = ?

Hopeing for an answer at this basic question ... :)
.
Put this in the after update Event of txtbox1 :
= Me.textbox1 * 2
 
K

Kristen

Not sure of the code, but I do know how to do the macro.

The macro would be SetValue.

The Item would be txtbox2
The Expression would be =2*txbox
-----Original Message-----
I have a textbox(txtbox) and another one (txtbox2) which
must display the double value of the first.
At the AfterUpdate Property of the first textbox what
function should I write in order to automaticaly update
the value of the second textbos with the double value of
the first?
 
D

Dirk Goldgar

Mario said:
I have a textbox(txtbox) and another one (txtbox2) which must display
the double value of the first.
At the AfterUpdate Property of the first textbox what function should
I write in order to automaticaly update the value of the second
textbos with the double value of the first?

Me.txtbox2.ControlSource = ?

Hopeing for an answer at this basic question ... :)

If txtbox2 is always to display double the value of txtbox, then you
shouldn't set its *value* at all. Instead, just set its Control Source
property (on the control's property sheet in design view) to

=[txtbox]*2
 

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