Normally, queries are used as the recordsource for other objects, typically forms and reports.
You should be able to open a query from within Access by using the
DoCmd.OpenQuery "Queryname"
Access command, which will show you the results of running the query if it is a select, or execute it if it is an action query (insert, update, delete).
As for showing the query results within a web page, my way of doing it would be to open a recordset with the SQL and loop through the records, printing the results up on the page as needed and then closing the recordset at the end.
John