
Get the value from the following cell (Our example).You will now get the dialog below, asking for the positioning on the sheet.Ĭlick the ‘parameters…’ button to show the dialog below. (start and end date), but you can ignore them. You will be prompted for your two parameters. In MS Query select File>Return data to Microsoft Excel. The next part is the ‘And’ operator followed by our second parameter, completing the parameter thus:īetween And These are enclosed in square brackets and what is in here will, in certain circumstances, appear as the prompt in the input box, with the entry being the parameter. To do this we enter the operator ‘Between’ followed by our first parameter. In our example we are going to take orders with a ship date between two dates, ( and ). (For those familiar with Access, this looks very similar to the query designer).įrom the image below you can see we have shown the ‘criteria grid’ by selecting View>Criteria from the MS Query menus. Take the second option to ‘View data or edit query in Microsoft Query’. Move on three screens making no changes until you arrive at the final screen (below). (Remember, if you have a parameter query in Access already, this will create an error if we try to use it in Excel. Navigate your way to your Access database and select the table or query you want from the list displayed and add the fields you require, as below. You will fire from here a dialog asking for your selection of an external datasource. Take the menu options Data>Import External Data>New Database Query… In A2 enter End Date and in B2 enter the date. Open a workbook and on the active sheet in cells A1 enter Start Date and in B1 enter the date. (Using 2003, but earlier version will be similar). With care, this can be done directly in Excel. Often I find myself with data in an external database, such as Access and continuously editing the query there to get the data how I want it in Excel. Hi everyone, first time authoring here and looking to pass on one of the neat, but less intuitive aspects of data management in Excel.
