renameing jpg's

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,
I have a problem.
I have a table with 500 path names to JPG's that I want to rename to another
column on that same table.
for example:
c:\Documents and Settings\User1\1.jpg is on one of the cells
and "Tree" is on the other cell in the same row
I want to change it to:
c:\Documents and Settings\User1\Tree.jpg
now, it would have been easy if it was 1 or 2 records but I have 500

can I do it on access?

Thanx in advance
Joe
 
Try a Query similar to:

UPDATE [YourTable] AS T
SET T.Field2 = Left( T.[Field1], InStrRev( T.[Field1], "\" ) ) &
T.[Field2] & ".jpg"

InStrRev() function is available only in A2000 and later. If you use
earlier version, it is a bit more messy but still doable.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Will not auto open .jpg 1
Powerpoint Macro doesnt work on Slideshow 0
Moving My Documents: what effect on shortcut links? 7
A Tree 5
Dymanic List Range 2
Creating a Multi-User Login 3
Access Running Balance in Access 1
Cycle ride 13

Back
Top