PC Review


Reply
Thread Tools Rate Thread

10 digit numbers

 
 
jkjmwilliams
Guest
Posts: n/a
 
      6th Jan 2010
I have a number that will be pulled up in a query that I would like to be 10
digits, with the leading black places as zeros. How do I get the zeros in
there?
JoAnn
 
Reply With Quote
 
 
 
 
Jerry Whittle
Guest
Posts: n/a
 
      6th Jan 2010
LeadingZeros: String(10-Len([FieldName]),"0") & [FieldName]
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


"jkjmwilliams" wrote:

> I have a number that will be pulled up in a query that I would like to be 10
> digits, with the leading black places as zeros. How do I get the zeros in
> there?
> JoAnn

 
Reply With Quote
 
Steve
Guest
Posts: n/a
 
      6th Jan 2010
There are NO NUMBERS that begin with 0!!! All you can get is a 10 character
yext string that contains only numeric characters. That's what Jerry is
showing you.

Steve
(E-Mail Removed)


"jkjmwilliams" <(E-Mail Removed)> wrote in message
news:3E4400A0-EEF2-40DD-ACDB-(E-Mail Removed)...
>I have a number that will be pulled up in a query that I would like to be
>10
> digits, with the leading black places as zeros. How do I get the zeros in
> there?
> JoAnn



 
Reply With Quote
 
jkjmwilliams
Guest
Posts: n/a
 
      6th Jan 2010
Thanks Steve for the tip about numbers and strings. Yes, I had the field
saved as a number. Changed it to text and things worked a lot better.

Thanks Jerry for the SQL statement. It worked great after I changed my field
to text.

"Steve" wrote:

> There are NO NUMBERS that begin with 0!!! All you can get is a 10 character
> yext string that contains only numeric characters. That's what Jerry is
> showing you.
>
> Steve
> (E-Mail Removed)
>
>
> "jkjmwilliams" <(E-Mail Removed)> wrote in message
> news:3E4400A0-EEF2-40DD-ACDB-(E-Mail Removed)...
> >I have a number that will be pulled up in a query that I would like to be
> >10
> > digits, with the leading black places as zeros. How do I get the zeros in
> > there?
> > JoAnn

>
>
> .
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
entering 16 digit numbers - last digit turns to zero dreamer Microsoft Excel New Users 4 9th May 2009 01:04 AM
Re: Store numbers starting with zero as 2 digit numbers Bongard Microsoft Excel Misc 0 11th Jan 2007 03:11 PM
16 DIGIT NUMBERS IN CELL WITHOUT LAST DIGIT BEING A ZERO =?Utf-8?B?am5rZWxs?= Microsoft Excel Worksheet Functions 2 18th Dec 2004 07:13 PM
Stop Rounding Last Digit of 16 Digit Numbers erc Microsoft Excel Misc 3 30th Mar 2004 07:34 PM
Change 2 digit suffix in 14 digit number in a column of numbers. Brad H. Microsoft Excel Worksheet Functions 1 4th Sep 2003 04:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:27 AM.