Learn Microsoft Access Advanced Programming Techniques, Tips and Tricks.

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 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.



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 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 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.

Technorati Tags:
Share:

No comments:

Post a Comment

Comments are subject to moderation before publishing.

Translate



PageRank
Subscribe in a reader
Your email address:

Delivered by FeedBurner

http://clicky.com/101199826
Blog Directory Visit blogadda.com to discover Indian blogs

Search

Popular Posts

Search This Blog

Blog Archive

Powered by Blogger.

Follow by Email

Labels

Forms Functions How Tos MS-Access Security Reports Class Module msaccess forms Animations msaccess animation Utilities msaccess controls Access and Internet MS-Access Scurity MS-Access and Internet Array Queries msaccess reports External Links msaccess tips Accesstips Downloads Objects Property Collection Object Event Menus and Toolbars Controls MsaccessLinks Process Controls WithEvents Art Work msaccess How Tos Combo Boxes Graph Charts List Boxes VBA msaccessQuery Command Buttons Dictionary Object Form Report Calculation Command Button Data Emails and Alerts Query RaiseEvent Custom Functions Custom Wizards DOS Commands Data Type Object Reference ms-access functions msaccess functions msaccess graphs msaccess reporttricks Item msaccessprocess security advanced Access Security Add Auto-Number Field Type Fields Form Instances Key Macros Menus SubForm Top Values Variables msaccess email msaccess menus progressmeter Access2007 Copy Excel Expression Join Methods Microsoft Numbering System Records Recordset Security Split Table Time Difference Utility Workgroup Wrapper Classes database function ms-access msaccess wizards reference text tutorial vba code Access2003 Accounting Year Action Animation Attachment Binary Numbers Bookmarks Budgeting ChDir Color Palette Conditional Formatting Data Filtering Defining Pages Diagram Disk Dynamic Lookup Error Handler Export External Filter Formatting Groups Hexadecimal Numbers Import Labels List Logo Macro Mail Merge Main Form Memo Monitoring Octal Numbers Operating System Paste Primary-Key Product Rank Reading Remove Rich Text Sequence SetFocus Summary Tab-Page Tables Union Query User Users Water-Mark Word automatically commands hyperlinks iSeries Date iif msaccess msaccess alerts pdf files restore switch toolbar updating upload

Featured Post

Running Sum in MS-Access Query

Introduction. We are familiar with creating Auto-Numbers in Query Column, through an earlier Function created with the Name QrySeq(), publi...

Labels

Blog Archive

Recent Posts