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

Strings and Update Query

Status
Not open for further replies.

lrfcbabe

Programmer
Joined
Jul 19, 2001
Messages
108
Location
US
I have a field(text) that contains data of varying string lengths. How can I either formatting the data field or using an Update query to say if the string is less than 10 concatenate until the length equals 10?

Thanks
 
concatenate until the length equals 10
concatenate WHAT ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
try
left(replace(textfield," " ,""),10)
 
Or use the String function which pads your item with zeros or blanks or whatever you want

=String(10-Len(FieldName),"0")

Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244. Basics at
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top