I have a form divided into tabs. One tab contains a spreadsheet view sub-form and a textbox above the subform. The subform has the record source set by the query 'tests' results. The criteria of the query reads the information wrote in the textbox. Everything is fine, but, as I run the query instead of populating me the subform it opens me an access tab with the query results (the same that opens when you run a query by double clicking the query name on the list on the left menu. How can I make the query populate the form instead of opening a tab in the access main window?