Happy new Year all,
I have a report with the following fields:
[title][firstname][lastname][secondtitle][secondfirstname][secondlastname]
I have an unbound text box that reads:
=[title]&" "&[firstname]&" "&[lastname]&"_ and "&[secondtitle]&" "[secondfirstname]&" "&[secondlastname]
I have nameed this box txtCustomerName
Now, on the on format event, I wrote an IF statement to get rid of the second info if it is null;
If me.secondlastname.value Isnull THEN
Me.txtCustomername.value =[title]&" "&[firstname]&" "&_[lastname]&"
Needless to say, this is not working. I don't know what is the correct syntax for expressing only the first customer. Any help is greatly apreciated.
David
I have a report with the following fields:
[title][firstname][lastname][secondtitle][secondfirstname][secondlastname]
I have an unbound text box that reads:
=[title]&" "&[firstname]&" "&[lastname]&"_ and "&[secondtitle]&" "[secondfirstname]&" "&[secondlastname]
I have nameed this box txtCustomerName
Now, on the on format event, I wrote an IF statement to get rid of the second info if it is null;
If me.secondlastname.value Isnull THEN
Me.txtCustomername.value =[title]&" "&[firstname]&" "&_[lastname]&"
Needless to say, this is not working. I don't know what is the correct syntax for expressing only the first customer. Any help is greatly apreciated.
David