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

Only pull records last two digits are 50 - 99 of a 7 digit number

Status
Not open for further replies.

lindagoodwin

IS-IT--Management
Nov 16, 2007
22
US
I am using Crystal 10.0.
I am working with a number field (Patient MRUN). I only need records for patients that the last two digits of the Patient's MRUN is from 50 - 99.

Example:

Field is formatted like this

67,610.00

I use the following formula to have it format correctly.
picture(totext({V_ABSTRACT_CONCISE.PATIENT_MRUN},"0000000"),"xxx-xx-xx")

It now reads 006-76-10. I only need to pull records for patients with the last two digits of 50 - 99.

Any help would be greatly appreciated. Thank you
 
right({@yourformula},2) in 50 to 99

-LB
 
maybe this will help:

right((totext({V_ABSTRACT_CONCISE.PATIENT_MRUN},"0000000"),"xxx-xx-xx"),2)
 
I used this and it worked.

right(picture(totext({V_ABSTRACT_CONCISE.PATIENT_MRUN},"0000000"),"xxx-xx-xx"),2) in "50" to "99"


Thank you so much. You make my job a less stressful!
 
Oops, I forgot to make the values strings.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top