Your comment that there is no entry in the database makes me think
that the objDR is empty, so there is no current record. This is very
different than a field having a null value. Check if objDR is nothing
(or null depending on language flavor) before testing. You should
probably handle a null record differently than a null field value.
On Wed, 28 Jan 2004 11:54:51 -0000, "luna" <lu**@themoon.com> wrote:
could someone explain the meaning behind :- System.IndexOutOfRangeException:
firstname1
when the code is :-
If objDR("firstname1") Is System.DBNull.Value Then
firstname1.Text = ""
Else : firstname1.Text = objDR("fname1")
End If
and theres no entry in the database if theres an entry in the database there
isnt a problem