Full Version: Joining null strings in a view
UtterAccess Discussion Forums > And More... > Microsoft SQL Server
gbdavisa
I want to create a view showing the contact's name as Surname, Title Intials and this works fine in Access, even when there is no data for initials or title. In SQL Server 2000 though, it would appear that the NULL entry for, say, Initials causes the who expression to be returned as Null i.e. Surname + ' ,' + Title + Initials

Is there the equivalent of NZ( ) as you could use in Access or a better way of creating the list of user names?

Thanks


Paul
truittb
Use the IsNull() function, the syntax is the same as the Nz() function

IsNull(YourField,'Value to Convert to')
gbdavisa
Great,

Thanks for your help. I'm off to start coding again.


Paul
truittb
You are welcome.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.