If you have a field in your db that has no value (null) you code doesn't know what to do with it. Since the check setting requires a boolean (True False) it can't interpret a null. One way around this is to set a default when adding a row to the database. If there is no value chosen OT set it to True and same for PT...
For the rows you already have in the DB you will have to handle them so your code won't bomb out. Assuming you are using MSSQL you can use an isnull statement. Basically it looks like this:
Code:
Select Grade, isnull(OT, 'True') as OT, isnull(PT,'True') as PT from myTable
I hope this helps! Also please try not to double post. We will see it the first time you post it. 2 of the same thing just boggs things down.