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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linked table - strip off zeroes 1

Status
Not open for further replies.

lmontes

Programmer
Jan 28, 2002
25
US
When I link a table, the leading zeroes are stripped off a field.
How can I stop this from happening?
 
Just create a query on the table which puts them back. Yet another reason for always using queries and never base tables.

 
I have a similar problem with zip codes, i try to add zeroes in front of a field that had been removes after importing the data. what syntax do i use in a query for that...

ex:
original data = 08801
actual field [zip] = 8801

desired field [zip] = 08801

- some records have been truncated into 3 digits due to the nature of the zip code, how can i check/differentiate the [zip] field from 3,4,or 5 digits zip codes. I think i should use the LEN() function but i dont know how to embed that into a if/conditional statement...

please help

Thanks
Kin
 
Right("0000" & [zip], 5)

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
wow... that is very clever and simple...

i didnt even think of that... hehe

THanks so much for the quick response
Kin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top