Copy Paste Data from Excel to Access2007
Methods are already built into office applications to transfer data between them. Importing/Exporting data or directly linking to it while maintaining original data in their parent applications. Transfer data into Clipboard (Copy) and Paste them into another. All these methods are 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 is Yes Access2007 creates a Table ( with the worksheet name) and pastes the data into it with correct data types.
Want to find out?
- Open Microsoft Excel and create a small database with the sample data given below:
- Open Microsoft Access2007 and open an existing .accdb database or create a new one.
- Make the Excel database window active.
- Highlight the Excel database range including the header row.
- Select Copy from Home Menu to transfer the data into the Clipboard.
- Make the Access2007 database window active.
- Right-click on the Navigation Pane and select Paste from the shortcut menu. The following message box is displayed:
- If you have included the header line of the data when you have copied it 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.
- Lively Controls on Form
- Create your own Color Pallette
- Colors 24 bits and Binary Conversion
- Hexadecimal Numbering System
- Octal Numbering System