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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ignore and trim code 1

Status
Not open for further replies.

lars7

Technical User
Joined
Aug 16, 2005
Messages
817
Location
GB
Hi Guys,
Can anyone help me with this one,

I have a field called pay scale which is a 4 digit code.

What I would like is for the code to only shows if it starts with a number, the letters to be blank, and also I only want the first 3 digits to show

hope this makes sense

Sample of pay scale:

Pay Scale
W116
202N
304C
R05D
205D
206E
207D
208D
D022
W123
C770

Thanks in advance.
 
Look up functions:

Left
IsNumeric

Try some things out and let us know how it goes.


Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244. Basics at
 
Hi Ginger,

Thanks for the "isNumeric" that's what I was missing:

Expr1: IIf(IsNumeric(Left([pay scale],1)),(Left([Pay Scale],3)))






 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top