|  To import text into Access, you might work with one of the two previously mentioned text files: delimited or fixed-width. As you learn more about other software applications, you'll find that many can export data to a text file. Let's demonstrate the import process by importing the two text files you created in the last section back into Access. Follow these steps:      In Access, right-click in the Database window, and then select  Import  from the shortcut menu.     In the Import dialog box, select  Text Files  from the Files of Type control.     Select  Catalogs.txt  and click  Import  . You could use the Look In control to find files in another folder, but  Catalogs.txt  is in the default folder.     The wizard tries to interpret the incoming data and select the appropriate file type: delimited or fixed-width. It won't always make the right choice, but this time, it does. The file is a delimited text file, so click  Next .      In the next pane, check the  First Row Contains Field Names  option so the wizard will know what to do with the field names in the first row. (You might remember that you included the field names when you exported the data earlier.) When you do, the wizard removes the field names from the record display. The wizard also correctly identifies the delimiter , which in this case is a comma. Click  Next.      You can import the data into an existing table or a new table. The default is to create a new table, and that's what you want to do, so click  Next.      You can rename the fields, apply an index, or specify a data type in the next pane. Don't make any changes; just click  Next.      Select the  Choose My Own Primary Key  option in the next window. The wizard defaults to the Name field, which is what you want, so after selecting the primary key option, click  Next.      In the final pane, change the default name to   CatalogsDelimited   , click  Finish  , and then click  OK  to clear the confirmation message. You already have a table named Catalogs, which is why you need to change the name.     In the Database window, click the  Tables  shortcut and open  CatalogsDelimited  .    The new table looks just like the original, doesn't it (refer to Figure 16.3)? Exporting the data to a text file and then importing it back into Access hasn't changed anythingthe data is no worse for the wear. Notice that Access used the names in that first row as field names for the new table.   To import the fixed-width text file, follow these steps:      Repeats steps 1 and 2 from the previous exercise.     In the Import dialog box, select  CatalogsFixedWidth.txt  and click  Import.      The wizard correctly identifies the text file as a fixed-width file, so click  Next.      There's an incorrect break in the first field, so double-click that first break line to delete it. Delete any other incorrect breaks you find. Then click  Next.      You're importing the data into a new table, so retain the default option of  In a New Table  ; then click  Next.      Take a minute to review the wizard's choices in the next pane. You can change a field's name, change its data type, or apply an index. You don't need to modify anything at this point, though, so click  Next  when you're ready to continue.     In the next pane, select the  Choose My Own Primary Key  option, select the Name field (if the wizard doesn't), and then click  Next.      In the last pane, click  Finish  and then click  OK  to clear the confirmation message.     Click the  Tables  shortcut in the Database window; then open the  CatalogsFixedWidth  table. It looks just like the original table (refer to Figure 16.3).    Importing a text file can require several settings, but the actual process is simple and the wizard usually does a good job of handling the data.    |