G
Guest
I have the following line in my code
paid.MonthsPaid = IIf(IsDBNull(Row("MonthsPaid")),
Integer.MinValue, Convert.ToInt16(Row("MonthsPaid")))
and I get the error message
Object cannot be cast from DBNull to other types.
What am I doing wrong?
paid.MonthsPaid = IIf(IsDBNull(Row("MonthsPaid")),
Integer.MinValue, Convert.ToInt16(Row("MonthsPaid")))
and I get the error message
Object cannot be cast from DBNull to other types.
What am I doing wrong?