Hi michael,
Indeed, I thought you had a DocumentType which value is null in your document types. It would still have an ID in this case, so my answer does not apply for your case.
I was able to do something using an sqlQuery statement, but you will loose a little bit on performances.
Remove your Eq filter from your Caml Query and add an sqlQuery similar to this one:
<sqlQuery tableName="res">
SELECT * FROM Documents
WHERE (DocumentType = @param! OR @param! = "All")
OR (@param! IS NULL AND DocumentType IS NULL)
</sqlQuery>
The first condition is to do the IfNot behavior, and the second one is to take care of the Null DocumentType.
I hope this help this time.
Regards,
Marien Monnier
Enesys