Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extract Only Numbers from Field 1

Status
Not open for further replies.

maduko

IS-IT--Management
Mar 24, 2003
43
US
Trying to pull the numbers from a field that has these type of values.....

X999
Z12
XY512
Y21445
Z7

I know it requires something along the lines of this but I can't get it correct:


ID: Right([MemberID],IIf(IsNumeric(Mid([MemberID],2,1)),1,6))
 
Perhaps this ?
ID: Mid([MemberID],IIf(IsNumeric(Mid([MemberID],2,1)),2,3))

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top