Thanks everyone, I've got it ALL working now. I DO have to remove the single quotes, and pass the string 'true' or 'false' into the sql, not a boolean. Thanks again for your time Tim