M
Max
Why doesn't this work:
cbAutoBill.Checked = IIf(IsDBNull(reader("autobill")), False,
Convert.ToBoolean(reader("autobill")))
Gives error: Object cannot be cast from DBNull to other types.
But this does:
cbAutoBill.Checked = IIf(IsDBNull(reader("autobill")), False,
reader("autobill"))
"autobill" is a bit
-Max
cbAutoBill.Checked = IIf(IsDBNull(reader("autobill")), False,
Convert.ToBoolean(reader("autobill")))
Gives error: Object cannot be cast from DBNull to other types.
But this does:
cbAutoBill.Checked = IIf(IsDBNull(reader("autobill")), False,
reader("autobill"))
"autobill" is a bit
-Max