In Microsoft Access a dialog box is to use for the user to enter details of the query - http://databasementor.com/basic-ms-access-lessons/basic-examples/cds-database/first-order-function/