getting a number from a form

  • Thread starter Thread starter Andy Levy
  • Start date Start date
A

Andy Levy

Hi

'The value of myTextBox on my form is 106666789.99

However if i call that value into my VBA Sub - only 6 significant figures
are returned.
Debug.Print "myTextBox Value = " & Me.myTextBox

'Which produces "myTextBox Value = 1.06667E+08

So it is only showing 6 significant figures - when really i need it to show
upto 10 sig figs or more.

Is there any way to do that?


Thanks

Andy
 
I just tried it using an unbound textbox and the printout was exactly what
was in the textbox. Is your textbox a Bound textbox (connected to a field)?
If so, what is the data type of the field in the table? If it is Number,
what is the Field Size? Try Double or Decimal for the Field Size and see if
that helps. I also tried it with a textbox bound to a Number, Double field
and it worked properly.
 
Back
Top