Checking for boolean DBNull

  • Thread starter Thread starter G Dean Blake
  • Start date Start date
G

G Dean Blake

I read in an earlier post that this would work:

If Not myrow.DeletedByUser Is DBNull.Value Then

But it gets a diagnostic if DeletedByUser is a boolean. How can I check to
see if a boolean is null without getting an exception?

(I know it's stupid to make a boolean null ok but I didn't design this
database)

Thanks,
G
 
Back
Top