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

Insert character into string 1

Status
Not open for further replies.

JoanieB

Programmer
Apr 17, 2001
57
US
I need to count back 5 places from the right of a string and insert a decimal point. I need to do this for an entire table - I know how to do the whole recordset thing and scroll through all the records, but how do I actually insert the character? "Help" was no help at all...
 
Hi!

Try this:

YourField = Left(YourField, Len(YourField) - 5) & "." & Right(YourField, 5)

You could use this in an update query as well and it will run a little faster.

hth Jeff Bridgham
bridgham@purdue.edu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top