Blocking "document open" from view

Hi…In a view i have following code in “Query Open Document” of the view

@DialogBox(“BlockDate”; [AutoHorzFit] : [AutoVertFit] : [SizeToTable] : [NoCancel] : [NoOkCancel] ; “” )

So that when any user double clicks on document instead of the actual document, a subform opens up and when saved, data gets back on the underlying form.

the problem is that after the subform closes the main document also opens. How can i avoid this??

any suggestions…

Subject: Query Open Doc of document

you can use Continue=False on QueryOpen event of the document/form