Just to add a little quirkiness here... You can also use IsDBNull.
For example, if you have a datareader, you could do something like:
If drReader.IsDBNull(UserName) Then
txtUserName.Text = ""
Else
txtUserName.Text = CStr(drReader("UserName"))
End If
Ciao,
Carl.
Carl Olson, Jr.
CEO, Founder
Cerelogic, Inc.
www.cerelogic.com"Applying rocket science to business."