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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top