Microsoft KB Archive/168219

= ACC: Copy and Paste Field in Datasheet View Includes Column Name =

Article ID: 168219

Article Last Modified on 1/19/2007

-

APPLIES TO


 * Microsoft Access 2.0 Standard Edition
 * Microsoft Access 95 Standard Edition
 * Microsoft Access 97 Standard Edition

-



This article was previously published under Q168219



Novice: Requires knowledge of the user interface on single-user computers.



SYMPTOMS
If you select and copy the data in a cell of a table, a query, or a form in Datasheet view, when you paste the data elsewhere, the data includes the name of the column in the datasheet.



CAUSE
You selected the entire cell, not just the data in the cell. When you select and copy an entire cell in Datasheet view, Microsoft Access automatically includes the column name.



STATUS
This behavior is by design.



MORE INFORMATION
Microsoft Access provides two ways to copy and paste data from a cell in Datasheet view. You can select and copy just the data itself, or you can select and copy the entire cell. By default, copying the entire cell includes the column name.

Selecting and Copying Only the Data in a Cell

 * 1) Open your table, query, or form in Datasheet view.
 * 2) Click inside a cell where you want to begin selecting data, and drag the mouse pointer across the data. Make sure the pointer is an I-beam shape while you drag.

If you want to use your keyboard to select all the data in a cell without selecting the column name, click anywhere inside the cell and press F2.

NOTE: By using these methods, you can only select the data in a single cell of the datasheet.

Selecting and Copying an Entire Cell or Multiple Cells
Whenever you select and copy an entire cell or multiple cells in your datasheet, Microsoft Access automatically includes the column name(s) when you paste the data.


 * 1) Open your table, query, or form in Datasheet view.
 * 2) Point to the left or the upper edge of the cell until your pointer changes to a plus shape (or an arrow in Microsoft Access 2.0).
 * 3) Click, and note that the entire cell is selected. If you copy and paste the data into another application, such as Notepad or Microsoft Excel, the column name will also be pasted.

If you want to select multiple cells, in step 3, drag the pointer over the cells you want, instead of clicking in one cell.

