Yep, although it should be noted that .IsDBNull() seems to be only for use with a DataReader.
~~Bonnie
>Oops... a little bug in the ointment... there should be quotes around the column name in the first line of the If:
>
>
>If drReader.IsDBNull("UserName") Then
> txtUserName.Text = ""
>Else
> txtUserName.Text = CStr(drReader("UserName"))
>End If
>
>
>
>Carl.