Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

converting text into numeric

Status
Not open for further replies.

ksraju6

Programmer
Jul 12, 2001
22
US

Hi !

Thanks in advance.

I have a text field in my access table, which is to be converted into number before sending it to another table . this field has leading zeros in the front eg:000074. But when i convert it into number it is becoming 74 .

How can I Control that ? I want it to be shown as number 000074 .

Is there a way to get it converted to number 000074 ???

PL. help me out !

hirshfielda@aetna.com
 
As far as I am aware you cannot store a numeric with leading zeros. What you can do is to display it with leading zeros by setting the field's Format property.

Type 000000 into the Format property for the display field and you should get the result you're looking for.

Rod
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top