why is it that when i issue this statement, all of those in query are lost? i mean lets say i have three lines:

LINE
SUBLINE
CLM_DOCS

when i have this statement on line and subline, it works fine but when it goes to clm_docs, no matter how i do it, all queries in clm_docs does not appear anymore. you see, what i need to do is that all records in clm_docs should not be queriable if it doesn't have anything on it. but instead of getting what i want (i tried "count" to count rows, and yes, it says 0 when it goes to records with nothing on them) what happens is that all records on clm_docs disappears (even if it is clear that there are records), all because of the code:

set_block_property('block', query_allowed, false);

what should i do to prevent this?

thanks a bunch...