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

Suppress field help

Status
Not open for further replies.

TechUser23

IS-IT--Management
Mar 8, 2007
28
US
My current formula:

if isnull({SB1001_main.PatientPhone1}) then "" else
if isnull({SB1001_main.PatientPhone1}) then
{SB1001_main.PatientPhone1} else
{SB1001_main.PatientPhone1}+" / "+{SB1001_main.PatientPhone1Type}

My issue is if there is no phone # entered, its reporting the following:
() - /

Can I have it just be blank and not report any of these characters??
 
Please correct your post. The formula's first two lines are the same, and nowhere does it show the characters "()-". If these are in the field itself, then show some samples of the field, also.

-LB
 
Perhaps its in the sql statement then ....

I just checked that, and sure enough it was the sql. Now all I'm getting is the '/' if null. Can I suppress that too if null?
 
Yes, but the solution awaits your correcting your post.

-LB
 
Try
Code:
if isnull({SB1001_main.PatientPhone1}) 
then "" 
else
[b]if isnull({SB1001_main.PatientPhone1Type})[/b]
then {SB1001_main.PatientPhone1} 
else {SB1001_main.PatientPhone1} + " / " +{SB1001_main.PatientPhone1Type}
You were doing the same test twice, rather than testing the second field.

You should maybe also be testing for spaces and "()".

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top