Using Data from Microsoft Access in Excel
How to Use QI Macros with Excel & Microsoft Access
How do I...
- Make sure fields you select are numeric by choosing design view and changing field type to number:
- Select FILE-SAVE AS/Export,
- Specify Excel format in "Save as type" box at bottom of screen and EXPORT.
- Open the Excel file, select the desired data. (Note if numeric fields are left aligned, not right, the Access fields are "text" not "number" and will not allow you to run the macros. Go back to Access and change the field layout to numeric)
- Run the desired chart:
- Once you have a database, you can analyze the database by linking Excel and using the QI Macros
- The database might look like the following:
- To use the QI Macros, you have to ensure that the data type of numeric fields is number, not text. Use View-Table Design to change the data type of all numeric fields to 'number'.
- Then, select the table, query, form, or report you want to save and load into Excel. From the Access menu select Tools-OfficeLinks-Analyze It With MS Excel.
- This will open Excel and create a .XLS file, which you can chart and graph using the QI Macros.
- To link to Access data and get information, you'll need to select Tools-Add-ins and check AccessLinks Addin and MS Query Add-in. If they aren't visible, choose browse and look in Library. If they still aren't visible, you'll need to copy them in from your installation CD.
- Then, from anywhere on your worksheet, you can select Data-Get External Data
- This will start MS Query. Select MS Access Database.
- Then select the database you want to use.
- Then, using the Query Wizard, click on the > sign to select the fields you want.
Then the Query Wizard will let you filter any fields, or just click Next.
You can change the sort order, or just click Next:
Then, click Finish to complete the query:
Excel will ask you about getting the data and where to put it on the spreadsheet:
Excel may prompt you again to select a database:
Excel will then import the data.
You can then select Data-Refresh Data to update the data as required.
Excel will go to the Access database and update the spreadsheet.