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

Result

Status
Not open for further replies.

workshop

Technical User
Nov 9, 2001
55
0
0
US
I have 5 fields a b c d e and F.
b is containe YES or NO
c is number validation auto generate start with 00001
d is contained DOG, CAT, or CHICKEN
e is contained Number of animals
f is contained LIVE, DEATH, or SICK

in a I lke to have result like this:
- if b is YES then enter Y00001
- if b is YES and d is DOG then in a is Y0001D
- if b is YES, d is DOG and e is 2 then in a is Y00001D2
- if b is YES, d is DOG, e is 2, and f is SICK then in a is Y00001D2S

Please help I haven't done this before... Thanks in advance
 
I'm using upper case for your field names.
Make A a calculation field as follows -
Case(B = "YES", "Y" & C & left(D,1) & numtotext(E) & left(F,1),
B = "NO", "") Cheers,
Paul J.
 
Hi Schlogg,
Thanks your respond I try your sugest but it's not work... Here my real situation:
field1 is INSTITUTION: University or Work
field2 is RECCORD NUNBER: auto number start from 00001
field3 is TISSUE TYPE: Tumor, lymph node,..
field4 is NUMBER SAMPLING: 1, 2, 3, or 4
field5 is SPECIMENT TYPE: Carcinoma, Invasive, or Rare
field6 is result:
example: 1: University, 2: 00001, 3: Lymph node, 4: 2, 5: Invasive then in field6 would be: U00001L2I

I just start to learn about filemakerPro but this to complicate for me would you please help me
 
Hi schlogg, I have try this but it said too few )?

here what I try:
case(left(Institution)&(Reccord number)&left(tissue type)&(number sampling)&left(speciment type)

please help
 
You have to 'close' the case statement :
To have a better view, use cariage returns :

case(
left(Institution)&
(Reccord number)&
left(tissue type)&
(number sampling)&
left(speciment type)
)

HTH

John
 
I finally got it work but not complete... How do I keep the reccord number in whole like 00001 instead 1... my reccord number is auto serial


Left(Institution,1)&Reccord number&Left(Tissue type,1) & number sampling&Left(Speciment type,1)&"-" & Left(Lesion pancreatic,2 )
 
For numbers -
Right("0000" & numtotext(NUM), 5)
To avoid the need to use numtotext, define your serial as text. Cheers,
Paul J.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top