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

Replacement of characters within a field

Status
Not open for further replies.

RTKarkivi

Technical User
Jun 28, 2003
22
Hi,

is there a possibility of replacing order of the characters within a field, for ex: 11-22-33 to be like 33-22-11


Thanks in advance,
Hysen
 
Yes - you can use an Update query together with Mid$ to extract parts of the data to update the position. In your example above, the SQL code would be:

Update table set field=Mid$(Field,7,2) & "-" & Mid$(Field,4,2) & "-" & Mid$(Field,1,2)

Messy, but it works.

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top