extract value

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

Guest

i need assistance extract the following

12345 from 3001-12345Y
653 from 2007-653Z
23 from 4009-23p

the number of places after the dash will be variable. I have tried using
the following with a field named test, but getting #Error when run query

Expr1: Mid([test],InStr([test],"-",1)+1,Len([test]-InStr([test],"-",1)-1))
 
There is a misplaced parentheses:

Mid([test],InStr([test],"-",1)+1,Len([test] ) -InStr([test],"-",1)-1)
 
still getting #Error.

HELP!

JLamb said:
There is a misplaced parentheses:

Mid([test],InStr([test],"-",1)+1,Len([test] ) -InStr([test],"-",1)-1)


stevenszoe said:
i need assistance extract the following

12345 from 3001-12345Y
653 from 2007-653Z
23 from 4009-23p

the number of places after the dash will be variable. I have tried using
the following with a field named test, but getting #Error when run query

Expr1: Mid([test],InStr([test],"-",1)+1,Len([test]-InStr([test],"-",1)-1))
 
The last Instr parameter is unnecessary and is throwing off the calc. This
works:

Mid([test],InStr([test],"-")+1,Len([test])-InStr([test],"-")-1)

stevenszoe said:
still getting #Error.

HELP!

JLamb said:
There is a misplaced parentheses:

Mid([test],InStr([test],"-",1)+1,Len([test] ) -InStr([test],"-",1)-1)


stevenszoe said:
i need assistance extract the following

12345 from 3001-12345Y
653 from 2007-653Z
23 from 4009-23p

the number of places after the dash will be variable. I have tried using
the following with a field named test, but getting #Error when run query

Expr1: Mid([test],InStr([test],"-",1)+1,Len([test]-InStr([test],"-",1)-1))
 
that worked. thanks much!

JLamb said:
The last Instr parameter is unnecessary and is throwing off the calc. This
works:

Mid([test],InStr([test],"-")+1,Len([test])-InStr([test],"-")-1)

stevenszoe said:
still getting #Error.

HELP!

JLamb said:
There is a misplaced parentheses:

Mid([test],InStr([test],"-",1)+1,Len([test] ) -InStr([test],"-",1)-1)


:

i need assistance extract the following

12345 from 3001-12345Y
653 from 2007-653Z
23 from 4009-23p

the number of places after the dash will be variable. I have tried using
the following with a field named test, but getting #Error when run query

Expr1: Mid([test],InStr([test],"-",1)+1,Len([test]-InStr([test],"-",1)-1))
 

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


Back
Top