PC Review


Reply
Thread Tools Rate Thread

Pasting from Excel to Access --Data Loss

 
 
=?Utf-8?B?bmllc3podw==?=
Guest
Posts: n/a
 
      23rd May 2005
When pasting a column of data from Excel to Access, one of my users is
experiencing data loss. For instance, they may have 100 rows to paste, but
when the paste occurs, it says "You are about to paste 2 rows". The data in
Excel is formatted as General. They are all text entries (LastName fields).
It is not exceeding the maximum field width in Access.

The user says they've tried this on multiple workstations with the same
result. However on my personal Laptop it does not happen, --all the data
pastes just fine.

Does anyone know why this may be occuring?
 
Reply With Quote
 
 
 
 
=?Utf-8?B?U2FjQ291cnQ=?=
Guest
Posts: n/a
 
      23rd May 2005
Try Paste Append. Paste Append will add new records to the table when paste
will only copy over the existing recreods. This is also data destructive, if
this is what was happening. Not only did you not get the other 48 recrods,
but you copied over the first two records you did have. You have lost data in
two ways by a simple paste.

If you are trying to paste the entire xls data to a table. I recommend
deleting all redords and then using pase append. Then you can have a line
count to confirim that you have them all.

Sometimes, you have other reasons that a recroed is rejected or that data is
lost. It is unclear whether or not this is happening. For example, you could
have 255 characters of data and a table field length of 50. So you can loose
data by truncation. It may not ve a valid date as you copy into a date
field. You can have carriage returns imbedded in a xls sheet and get only the
first line.

You might try to import the xls instad.






--
Self taught user of Access 97 – 2003 with 7 years of experience with is part
of 20 years of overall database experience. I'm still learning.


"nieszhw" wrote:

> When pasting a column of data from Excel to Access, one of my users is
> experiencing data loss. For instance, they may have 100 rows to paste, but
> when the paste occurs, it says "You are about to paste 2 rows". The data in
> Excel is formatted as General. They are all text entries (LastName fields).
> It is not exceeding the maximum field width in Access.
>
> The user says they've tried this on multiple workstations with the same
> result. However on my personal Laptop it does not happen, --all the data
> pastes just fine.
>
> Does anyone know why this may be occuring?

 
Reply With Quote
 
 
 
 
=?Utf-8?B?bmllc3podw==?=
Guest
Posts: n/a
 
      24th May 2005
Initially the destination table is empty. The data is being pasted column by
column, so only the first paste creates new records. Any successive paste
only fills fields in the records created by the first paste. There are no
data validation issues (truncation, date fields), it is strictly a text to
text paste.

I will have the user try the paste append function and see if this makes a
difference.

Thanks in advance,
hwn

"SacCourt" wrote:

> Try Paste Append. Paste Append will add new records to the table when paste
> will only copy over the existing recreods. This is also data destructive, if
> this is what was happening. Not only did you not get the other 48 recrods,
> but you copied over the first two records you did have. You have lost data in
> two ways by a simple paste.
>
> If you are trying to paste the entire xls data to a table. I recommend
> deleting all redords and then using pase append. Then you can have a line
> count to confirim that you have them all.
>
> Sometimes, you have other reasons that a recroed is rejected or that data is
> lost. It is unclear whether or not this is happening. For example, you could
> have 255 characters of data and a table field length of 50. So you can loose
> data by truncation. It may not ve a valid date as you copy into a date
> field. You can have carriage returns imbedded in a xls sheet and get only the
> first line.
>
> You might try to import the xls instad.
>
>
>
>
>
>
> --
> Self taught user of Access 97 – 2003 with 7 years of experience with is part
> of 20 years of overall database experience. I'm still learning.
>
>
> "nieszhw" wrote:
>
> > When pasting a column of data from Excel to Access, one of my users is
> > experiencing data loss. For instance, they may have 100 rows to paste, but
> > when the paste occurs, it says "You are about to paste 2 rows". The data in
> > Excel is formatted as General. They are all text entries (LastName fields).
> > It is not exceeding the maximum field width in Access.
> >
> > The user says they've tried this on multiple workstations with the same
> > result. However on my personal Laptop it does not happen, --all the data
> > pastes just fine.
> >
> > Does anyone know why this may be occuring?

 
Reply With Quote
 
=?Utf-8?B?U2FjQ291cnQ=?=
Guest
Posts: n/a
 
      24th May 2005
Thanks, colum by colom pastes are not reliable. If the order changes you
scramble your data. I prefer to put the data into a static table and use an
update query to update the data based on a matching key, for example,
personnel number.

--
Self taught user of Access 97 – 2003 with 7 years of experience with is part
of 20 years of overall database experience. I'm still learning.


"nieszhw" wrote:

> Initially the destination table is empty. The data is being pasted column by
> column, so only the first paste creates new records. Any successive paste
> only fills fields in the records created by the first paste. There are no
> data validation issues (truncation, date fields), it is strictly a text to
> text paste.
>
> I will have the user try the paste append function and see if this makes a
> difference.
>
> Thanks in advance,
> hwn
>
> "SacCourt" wrote:
>
> > Try Paste Append. Paste Append will add new records to the table when paste
> > will only copy over the existing recreods. This is also data destructive, if
> > this is what was happening. Not only did you not get the other 48 recrods,
> > but you copied over the first two records you did have. You have lost data in
> > two ways by a simple paste.
> >
> > If you are trying to paste the entire xls data to a table. I recommend
> > deleting all redords and then using pase append. Then you can have a line
> > count to confirim that you have them all.
> >
> > Sometimes, you have other reasons that a recroed is rejected or that data is
> > lost. It is unclear whether or not this is happening. For example, you could
> > have 255 characters of data and a table field length of 50. So you can loose
> > data by truncation. It may not ve a valid date as you copy into a date
> > field. You can have carriage returns imbedded in a xls sheet and get only the
> > first line.
> >
> > You might try to import the xls instad.
> >
> >
> >
> >
> >
> >
> > --
> > Self taught user of Access 97 – 2003 with 7 years of experience with is part
> > of 20 years of overall database experience. I'm still learning.
> >
> >
> > "nieszhw" wrote:
> >
> > > When pasting a column of data from Excel to Access, one of my users is
> > > experiencing data loss. For instance, they may have 100 rows to paste, but
> > > when the paste occurs, it says "You are about to paste 2 rows". The data in
> > > Excel is formatted as General. They are all text entries (LastName fields).
> > > It is not exceeding the maximum field width in Access.
> > >
> > > The user says they've tried this on multiple workstations with the same
> > > result. However on my personal Laptop it does not happen, --all the data
> > > pastes just fine.
> > >
> > > Does anyone know why this may be occuring?

 
Reply With Quote
 
John Vinson
Guest
Posts: n/a
 
      24th May 2005
On Mon, 23 May 2005 10:11:01 -0700, "nieszhw"
<(E-Mail Removed)> wrote:

>When pasting a column of data from Excel to Access, one of my users is
>experiencing data loss. For instance, they may have 100 rows to paste, but
>when the paste occurs, it says "You are about to paste 2 rows". The data in
>Excel is formatted as General. They are all text entries (LastName fields).
>It is not exceeding the maximum field width in Access.
>
>The user says they've tried this on multiple workstations with the same
>result. However on my personal Laptop it does not happen, --all the data
>pastes just fine.
>
>Does anyone know why this may be occuring?


As SacCourt says, copy and paste is really less than ideal. I'd
suggest using File... Get External Data... Link to connect Access to
the spreadsheets, and then run Append queries to add new records, and
Update queries (joining on an appropriate unique field in the table
being updated) to update existing ones.

John W. Vinson[MVP]
 
Reply With Quote
 
=?Utf-8?B?bmllc3podw==?=
Guest
Posts: n/a
 
      26th May 2005
I would agree with you and SacCourt most of the time. However this user has
approx. 100+ spreadsheets, all non-standardized, that gets sent to her from
various sources. The database will be used to standardize the data.
Reformatting all of the data in the Excel spreadsheets is out of the
question--(too many variables to account for. Differences in fields as well
as formats). Even if I built import specs for every spreadsheet, any new
spreadsheet would still be an issue. I tried building an Excel "Template
spreadsheet" for her to paste the data into, but Excel keeps the formatting
of a field when you copy and paste, so it overwrites the template fields.
The next best solution is to paste directly into Access which does not
inherit field formatting. That is when the issue of not pasting all the data
reared its ugly head.

I hope this clarifies why I'm using such an archaic way of importing the
data. However, I will consider any other possible solutions for importing
the data with less effort.

Thanks,
hwn

"John Vinson" wrote:

> On Mon, 23 May 2005 10:11:01 -0700, "nieszhw"
> <(E-Mail Removed)> wrote:
>
> >When pasting a column of data from Excel to Access, one of my users is
> >experiencing data loss. For instance, they may have 100 rows to paste, but
> >when the paste occurs, it says "You are about to paste 2 rows". The data in
> >Excel is formatted as General. They are all text entries (LastName fields).
> >It is not exceeding the maximum field width in Access.
> >
> >The user says they've tried this on multiple workstations with the same
> >result. However on my personal Laptop it does not happen, --all the data
> >pastes just fine.
> >
> >Does anyone know why this may be occuring?

>
> As SacCourt says, copy and paste is really less than ideal. I'd
> suggest using File... Get External Data... Link to connect Access to
> the spreadsheets, and then run Append queries to add new records, and
> Update queries (joining on an appropriate unique field in the table
> being updated) to update existing ones.
>
> John W. Vinson[MVP]
>

 
Reply With Quote
 
John Vinson
Guest
Posts: n/a
 
      26th May 2005
On Thu, 26 May 2005 05:29:32 -0700, "nieszhw"
<(E-Mail Removed)> wrote:

>I would agree with you and SacCourt most of the time. However this user has
>approx. 100+ spreadsheets, all non-standardized, that gets sent to her from
>various sources. The database will be used to standardize the data.


:-{(

My sympathies! Sounds like you're making the best possible of a very
bad situation.

John W. Vinson[MVP]
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pasting from excel - Image loss lmorin Microsoft Word Document Management 5 11th May 2009 09:42 AM
Loss of text color when pasting from Excel into Powerpoint =?Utf-8?B?T1VQaW9uZWVy?= Microsoft Powerpoint 1 13th Mar 2006 10:13 PM
loss of NTFS/folders loss of profile rossi Microsoft Windows 2000 Hardware 1 30th Oct 2003 09:28 PM
Memory loss during file writes & loss of IO performance. Geoff Microsoft Windows 2000 Applications 1 14th Sep 2003 12:02 AM
Memory loss during file writes & loss of IO performance. Geoff Microsoft Windows 2000 File System 0 12th Sep 2003 04:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:14 PM.