truncate last 2 characters??

  • Thread starter Thread starter Naresh
  • Start date Start date
N

Naresh

Hi

how can i truncate last 2 characters using Ms Access97. Is there any
function ?

AH1121SI should be displayed like AH1121
DW421SH should be displayed like DW421

Thanks in advance

Naresh
 
Naresh said:
Hi

how can i truncate last 2 characters using Ms Access97. Is there any
function ?

AH1121SI should be displayed like AH1121
DW421SH should be displayed like DW421

Thanks in advance

Naresh

Use a combination of the Left and Len functions, thus:

Left([MyField],Len(MyField)-2)
 

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

Back
Top