Selecting characgers from a text field

A

Abay

Hello ... I have a field (which is a file name) the contents of which look
like: "452F1234REVA.dwg" or 334M2222.001REVB.dwg".

I need to extract the contents to look like: 452-F-1234 AND 334M2222.001and
place them in another field. I need to place the revision no which is the A
and B at the end of "REV" in another field.

I can insert the dashes and extract the revision no, but need help
eliminating the REVA.dwg from the end of the file name ... the problem for
me is that the format is different between the two fields as shown above.

Any help would be most appreciated.

Abay
 
T

tina

if you always want to remove the "REV?.dwg" from the end of the text string
(the question mark standing in for any single-character revision value),
then try

Left(FieldName, Len(FieldName) - 8)

replace FieldName with the name of the field that holds the values you
posted, of course.

hth
 

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

Top