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

Unbound field w/ 2 values is blank when 1 is null. 1

Status
Not open for further replies.

qwert231

Programmer
Sep 4, 2001
756
US
I have an unbound field with 2 fields combined with a , in between. But if the firstname field is blank, I get nothing in the field, even though the lastname contains a value.
Here is my field's formula:
{viewSubjInfUC.LastName} & ", " & {viewSubjInfUC.FirstName}

I want the field to show whatever data is available, regardless of whether or not one field is null or not.

I am using a .Net DataSet.

Any ideas?
 
I usually do something like this for names:
Code:
IF isnull({viewSubjInfUC.LastName}) or {viewSubjInfUC.LastName} = '' then
{viewSubjInfUC.FirstName}
else if isnull({viewSubjInfUC.FirstName} or {viewSubjInfUC.FirstName} = '' then
{viewSubjInfUC.LastName}
else
{viewSubjInfUC.LastName} & ', ' & {viewSubjInfUC.FirstName}
-dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top