coding

H

hngo

Hi,

I have create a table records that ave anique id number such as 7.5-6-ND or
7.5-6-D

Now i need to refer to this number but only the characters after the last
"-" ie ND or D etc... Can we program the databse to return this characters
only.

Thanks for any ideas. I looked at various copying codes but none go to the
subform.
 
W

Wolfgang Kais

Hm hngo.

hngo said:
I have create a table records that ave anique id number such as
7.5-6-ND or > 7.5-6-D

Now i need to refer to this number but only the characters after the
last "-" ie ND or D etc...
Can we program the databse to return this characters only.

Yes you can. Depending on your Access version, this might work:
Mid$([ID], 1+InStrRev([ID],"-"))
Use this calculated expression in a query.
 

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