I have an Access 2000 database that I am reporting on via an ODBC connection. In the report I want to concatenate 6 string fields comprising the description of a person:
Sex | Race | Height | Weight | Hair | Eyes
where 1 or more of the fields have no data.
I started by using a formula like this:
If IsNull({Sex}) then
"?" + {Race}+"/"+{Height}}+"/"+{{Weight}}+"/"+{{Hair}}+"/"+{{Eyes}
Else
If IsNull({Sex}) and IsNull({Race}) then
"?" + "?"}+"/"+{{Height}}+"/"+{{Weight}}+"/"+{Hair}}+"/"+{{Eyes}
...and so forth, to produce a report field that looks like this for example: M/W/5-10/160/BR/BL
I also tried using the & operator, but got the same results.
I am wondering if there is a better way than having to use multiple IF...THEN statements to account for every possible combination of fields with no data and fields with data. I thought of trying to use variables to accomplish this, but am not familiar enough with variables to make it happen, or if this is possible. One more handicap I face: our IS department didn't install Crystal Help and I see no hope of getting it soon, so I am operating a bit in the dark.
I am using Crystal Reports 8.5 on Windows 2000. Anyone got any ideas?
Thanks in advance, you guys are my HELP system until I get this issue of HELP installation resolved!
Sex | Race | Height | Weight | Hair | Eyes
where 1 or more of the fields have no data.
I started by using a formula like this:
If IsNull({Sex}) then
"?" + {Race}+"/"+{Height}}+"/"+{{Weight}}+"/"+{{Hair}}+"/"+{{Eyes}
Else
If IsNull({Sex}) and IsNull({Race}) then
"?" + "?"}+"/"+{{Height}}+"/"+{{Weight}}+"/"+{Hair}}+"/"+{{Eyes}
...and so forth, to produce a report field that looks like this for example: M/W/5-10/160/BR/BL
I also tried using the & operator, but got the same results.
I am wondering if there is a better way than having to use multiple IF...THEN statements to account for every possible combination of fields with no data and fields with data. I thought of trying to use variables to accomplish this, but am not familiar enough with variables to make it happen, or if this is possible. One more handicap I face: our IS department didn't install Crystal Help and I see no hope of getting it soon, so I am operating a bit in the dark.
I am using Crystal Reports 8.5 on Windows 2000. Anyone got any ideas?
Thanks in advance, you guys are my HELP system until I get this issue of HELP installation resolved!