BrownFingers
Member
- Joined
- Nov 21, 2008
- Messages
- 15
- Programming Experience
- Beginner
I have a datacolumn with the following expression
FirstName + ' ' + Surname
I now need to add Job Role to then end so I have something like
Joe Bloggs, Managing Director
so I my expression now looks like :
FirstName + ' ' + Surname + ', ' + JobRole
My problem is that JobRole will not always be known so sometimes it will contain a NULL value. In such an instance I want to display the original expression
FirstName + ' ' + Surname
I can't seem to find anywhere that shows me what statements I can use in a DataColumn expression.
I would presume it needs to be something like
If JobRole Is NULL then FirstName + ' ' + Surname Else FirstName + ' ' + Surname + ', ' + JobRole
Can anyone give me correct syntax?
FirstName + ' ' + Surname
I now need to add Job Role to then end so I have something like
Joe Bloggs, Managing Director
so I my expression now looks like :
FirstName + ' ' + Surname + ', ' + JobRole
My problem is that JobRole will not always be known so sometimes it will contain a NULL value. In such an instance I want to display the original expression
FirstName + ' ' + Surname
I can't seem to find anywhere that shows me what statements I can use in a DataColumn expression.
I would presume it needs to be something like
If JobRole Is NULL then FirstName + ' ' + Surname Else FirstName + ' ' + Surname + ', ' + JobRole
Can anyone give me correct syntax?