When a program cannot view Access database tables/queries directly, you can share data by exporting it from Access. You must choose another file format that both understand, like csv (comma separated values), which is a text format, or perhaps XML format.
There are a number of ways to get data out of Access into a file that another program can use.
Export buttons on External Data ribbon tab:
Select object to export in the Navigation Pane. Click the button for the format you want to export with - Excel spreadsheet, text file, PDF, Access, Word Merge, XML, etc. Some formats may not be available for a particular object. A database must
already exist before you can export to it.
Exporting a form or report to another Access database just puts a copy of the design in the database. Exporting a form or report to other format will copy the data shown by the form or report.
Using the button Email will export your object as an attachment. You must have an email account like Outlook that can handle MAPI protocol to use this feature.
It is tricky to get everything you want to export to show up in the new file. Access gives you some options for certain formats but not for all. Some 'problems' are just a result of the way things work. Some things will not export at all. Some things can be exported with difficulty.
![]() |
Step-by-Step: Export Table from Access |
![]() |
What you will learn: | to export as text file to export as text file without formatting to export as a formatted Excel file to export to another Access database |
Start with: , resource files, worldtravel-Lastname-Firstname.accdb
World Travel Inc. needs to share its Staff table with some of its offices that have not yet started using Access. The table needs to exported as a comma-delimited text file (csv) and also as an Excel spreadsheet (xls) since different offices have been using different software. (It is a BAD PLAN for different parts of a company to use different software, but is not unusual in the real world!)
Once you have other kinds of objects in Access, you can export them similarly.
You have a number of choices to make when exporting data as a text file. Some parts do not export unless you choose to export the formatting and layout. Some parts won't export at all, like attachments or images. First let's look at what happens when you export a table as formatted text.
From the External Data ribbon tab in the Export tab group (NOT the Import and Link tab group!),
click the button Text File .
The Export -Text File dialog appears.
Problem: The Export buttons are grayed out (not available)
You did not select an object to export in the Navigation Pane.
Solution: Select the Staff table. Then the Export buttons will be available.
Click the Browse button
The File Save dialog opens.
Click on OK.
A dialog opens about how to encode the file.
The dialog Export - Text File offers you the chance to save these steps. That is a good idea only if you will be doing this same export regularly.
Scroll to the right to see all of the columns.
What did not export happily?
If there are only a few errors, you can hand edit the text file to make corrections. We won't bother at this time.
When you choose NOT to export with formatting, you must tell Access more about what you want to see in the text file. The choices are similar to the ones for importing a text file. Let's try this export again.
From the External Data ribbon tab in the Export tab group (NOT the Import and Link tab group!),
click the button Text File .
The Export -Text File dialog appears, still set to the databases project3 folder.
Change the name of the file to Staff-notformatted.txt.
Verify that the path is to the folder databases3 on your Class disk and that the file name is Staff-notformatted.txt.
There is no Browse button here. If the path is not correct, you will have to type in the correct path yourself!
In a Windows Explorer window, navigate to your Class disk and open the file Staff-notformatted.txt in Notepad.
Word Wrap should still be off.
Scroll horizontally to see if any data got cut off.
Success!
Looks like those longer fields came through correctly this time. This is a serious advantage to this method of export!
Null or blank values show just the comma separators.
This file is not easy to read for people. Without formatting, the field names do not line up with the values. But computers can read this very well and can match the correct parts.
Close your text editor.
A spreadsheet is often a good choice for export. The columns make it easy to see the data laid out like it showed in an Access datasheet.
From the External Data ribbon tab in the Export tab group (NOT the Import and Link tab group!),
click the button Excel.
The Export -Excel Spreadsheet dialog appears.
Sometimes it is convenient to export to another Access database instead of importing from that other database. It's easy to do from either direction.
From the External Data ribbon tab in the Export tab group (NOT the Import and Link tab group!),
click the button Access.
The Export - Access dialog appears.