*2?

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

Guest

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 ... :)
 
-----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
 
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?
 
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
 
Back
Top