Linking Text and Spreadsheet Files
Linking a text file or an Excel spreadsheet file is almost identical to importing these types of files, as discussed earlier in this tutorial. As noted, you can only read linked text and Excel spreadsheet files.
To link a spreadsheet file or a text file, do the following:
- Open the Access database to which you want to link the file. If that database is already open, close any objects so that only the Navigation pane is visible.
- On the External Data tab, in the Import & Link group, click the Excel or Text File command. Select Link To The Data Source By Creating A Linked Table in the Get External Data dialog box.
- Click Browse to open the File Open dialog box shown earlier. Select the
folder and the name of the file to which you want to link. If you're connecting over a
network, select the logical drive that is assigned to the network server that contains
the database you want. If you want Access to automatically connect to the network
server each time you open the linked file, type the full network location in the File
Name box instead of choosing a logical drive, path, and file name. For example, on a
Windows network you might enter a network location such as
\\filesvr\excel\shared\companies.xlsx
- Click Open to return to the Get External Data dialog box, and then click OK to start the Link Spreadsheet Wizard or the Link Text Wizard.
- Follow the steps in the wizard, which are identical to the steps for importing a spreadsheet or text file, as described earlier in this tutorial.
CAUTION!: You can have the same problems with delimiters, text qualifiers, data types, and primary keys noted under importing. You might need to correct or reformat the data in your text or spreadsheet file to be able to successfully link to it. For example, if Access guesses the wrong data type for a column in an Excel file, you will see #Error in fields that have the incorrect data type.
In this tutorial:
- Importing and Linking Data
- Open Database Connectivity (ODBC)
- Creating a Data Source to Link to an ODBC Database
- Importing vs. Linking Database Files
- Importing Data and Databases
- Importing SQL Tables
- Importing Access Objects
- Importing Spreadsheet Data
- Importing a Spreadsheet
- Importing Text Files
- Modifying Imported Tables
- Linking Files
- Linking Access Tables
- Linking dBASE Files
- Linking Text and Spreadsheet Files
- Linking SQL Tables
- Modifying Linked Tables