| | |
|
|
|
getting a number from a form |
| message from Andy Levy on 3 Jun 2004 |
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
|
| Wayne Morgan replied to Andy Levy on 3 Jun 2004 |
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.
|
| Andy Levy replied to Wayne Morgan on 4 Jun 2004 |
Sorry - yes - you are right - it was all to do with the binding
Thank you
"Wayne Morgan" <comprev_gothroughthenewsgroup@hotmail.com> wrote in message
news:eFC6ucXSEHA.4032@TK2MSFTNGP11.phx.gbl...
|
|
Archived message: getting a number from a form (MS Access Database)