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.
 
Sorry - yes - you are right - it was all to do with the binding

Thank you
 

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

Back
Top