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

Update Qry 1

Status
Not open for further replies.

pfunk

Technical User
May 7, 2007
37
GB
i have a field called zip it is a text field. when i imported to access it dropped the O in front so i am looking to write a qry to identify if it has only 4 characters them update those with a zero in front of it?
 
Please post the SQL that you have tried.

If you import to a text field, or use an import specification, Access will not drop zeros.
 
update tablename set zip = format(zip,"00000")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top