Add zeroes to text box

Good Afternoon,

I have a query whose output is the source of a form (Table view).  Part of this output is latitude and longitude infomration.  I need to display 6 decimal places, but when there are, say 3 decimal places, that is all that is displayed, no "trailing zeroes."

I've tried setting the "decimal places" property to 6 decimal places, but that doesn't correct the problem.

I appreciate your input.

Thanks,

aasikolo
aasikoloAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rey Obrero (Capricorn1)Commented:
try using format([field],"#.000000")
0
Kent DyerIT Security Analyst SeniorCommented:
I think formatNumber maybe an option too..  It has been a while since I have used Access..

Kent
0
aasikoloAuthor Commented:
That works for latitude, but longitude is negative.  Entering the minus sign has no effect with that format, that is, the minus sign isn't displayed.

Thanks
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Rey Obrero (Capricorn1)Commented:
<That works for latitude, but longitude is negative.  >
you can check if the value is negative or positive, before applying the format

iif([field] < 1,"-" & Format([field],"#.000000"),Format([field],"#.000000"))
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
JezWaltersCommented:
I may have the wrong end of the stick here but the following expression gives the right output:

    Format(-123.2345, "#.000000")

As far as I can tell, there's no need to conditionally prefix the "-" character.
0
Rey Obrero (Capricorn1)Commented:
this is ridiculuos!!!
0
Rey Obrero (Capricorn1)Commented:
aasikolo,
explain why you accepted a comment that was a reproduction of a post at http:#a35300049
0
aasikoloAuthor Commented:
I don't know what is going on.  I accepted your last installment as the answer, awarded points, and I get another comment in the mail.

I reopen EE, thought I was awarding the points to you again, and then I apparently awarded the points to JezWalters.

Please advise on how to correct this situation.

thank you.
0
Rey Obrero (Capricorn1)Commented:
click on Request Attention above and ask to reopen the thread.
0
JezWaltersCommented:
It's normal to accept the first answer that works, so capricorn1's post fits this bill - I was just commenting about a problem with his second post.
0
aasikoloAuthor Commented:
In case it is not apparent, I requested that a moderator reopen this thread and am waiting for them to do so in order to proceed.

thank you for your patience.
0
Rey Obrero (Capricorn1)Commented:
np..
0
aasikoloAuthor Commented:
Let's hope the points get awarded this time
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Applications

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.