Normally you'd need to to set the target frame, and then open the view.
However, the QueryOpenDatabase may not be positioned where you can actually pull this off. The "Query" part sometimes means that the database hasn't been opened yet ... in which case, there's no target out there to point to.
I remember having trouble with this.
You may need to move to the frameset, where you can select the frame being opened using @functions.