Learn Microsoft Access Advanced Programming Techniques, Tips and Tricks.

Saturday, April 23, 2011

Copy Paste Data from Excel to Access2007

Introduction.

Methods are already built into office applications to transfer data between them. Importing/Exporting data or directly linking to it while maintaining the original data in the parent application.  Transfer data into the Clipboard (Copy) and Paste them into another.   All these methods were already there.

In earlier Access Versions you need to create a Table with matching data field types to Paste or Paste - -> Append data into them.  In Access2007 this is made even better now.  For example, you don't need a Table to paste data from Excel into Access2007.  Access2007 will ask you whether you have included the header lines in the copied data or not.  If your answers are Yes Access2007 create a Table ( with the worksheet name) and paste the data into it with the correct data types.

Let us find out How?

  1. Open Microsoft Excel and create a small database with the sample data given below:

  2. Open Microsoft Access2007 and open an existing .accdb database or create a new one.

  3. Make the Excel database window active.

  4. Highlight the Excel database range including the header row.

  5. Select Copy from Home Menu to transfer the data into the Clipboard.

  6. Make the Access2007 database window active.

  7. Right-click on the Navigation Pane of Tables and select Paste from the shortcut menu.  The following message box is displayed:

  8. If you have included the header line of the data when you have copied them, then you may click on the Yes Command Button otherwise select No.

A new Table will be created with the Worksheet name.  The header cell values will be used as field names.  The field data type (Text, Date, Number, etc.) will be correctly defined depending on the type of data that you have copied from excel.

If you have selected No then the data will still be pasted into a new table, but the field names will be like F1, F2, F3, etc.

Technorati Tags:
  1. Roundup Excel Function in MS-Access
  2. Proper Excel Function in Microsoft Access
  3. Appending Data from Excel to Access
  4. Writing Excel Data Directly into Access
  5. Printing MS-Access Report from Excel
  6. Copy Paste Data From Excel to Access2007
  7. Microsoft Excel-Power in MS-Access
  8. Rounding Function MROUND of Excel
  9. MS-Access Live Data in Excel
  10. Access Live Data in Excel- 2
  11. Opening Excel Database Directly
  12. Create Excel, Word Files from Access

No comments:

Post a Comment

Comments subject to moderation before publishing.

Powered by Blogger.