PC Review


Reply
Thread Tools Rate Thread

Copying data between duplicate records

 
 
Jack Myers
Guest
Posts: n/a
 
      27th Apr 2009
Hello All,

In a single table there are some records that are duplicates based on an
account number. The only difference in the duplicate records (for a
particular account number) is a LoanNumber value. All the other values in a
record are the same, such as the address fields.

What I need to do is take the top duplicate record and copy/paste the
LoanNumber values from the other duplicate records (for a particular account
number) into other LoanNumber fields I will create in the top record.

Once I have all the values copied to the top record I will then find these
records (along with records that had only one loan number) and export them as
a text file.

Any feedback would be great.

Thank.
 
Reply With Quote
 
 
 
 
Armen Stein
Guest
Posts: n/a
 
      28th Apr 2009
On Mon, 27 Apr 2009 15:08:01 -0700, Jack Myers <Jack
(E-Mail Removed)> wrote:

>In a single table there are some records that are duplicates based on an
>account number. The only difference in the duplicate records (for a
>particular account number) is a LoanNumber value. All the other values in a
>record are the same, such as the address fields.
>
>What I need to do is take the top duplicate record and copy/paste the
>LoanNumber values from the other duplicate records (for a particular account
>number) into other LoanNumber fields I will create in the top record.


It seems as though you will need multiple LoanNumber fields in the
same record, which is a poor database design. If you're going to need
to use this table in the future, it would be better to refine your
structure. You should really have one table for a Person (or Client,
or whatever you call them) and another child table for Loan (with each
LoanNumber and related fields in each row).

>Once I have all the values copied to the top record I will then find these
>records (along with records that had only one loan number) and export them as
>a text file.


For what purpose? That text file will not be well structured either.

Armen Stein
Microsoft Access MVP
www.JStreetTech.com

 
Reply With Quote
 
Jack Myers
Guest
Posts: n/a
 
      28th Apr 2009


"Armen Stein" wrote:

> On Mon, 27 Apr 2009 15:08:01 -0700, Jack Myers <Jack
> (E-Mail Removed)> wrote:
>
> >In a single table there are some records that are duplicates based on an
> >account number. The only difference in the duplicate records (for a
> >particular account number) is a LoanNumber value. All the other values in a
> >record are the same, such as the address fields.
> >
> >What I need to do is take the top duplicate record and copy/paste the
> >LoanNumber values from the other duplicate records (for a particular account
> >number) into other LoanNumber fields I will create in the top record.

>
> It seems as though you will need multiple LoanNumber fields in the
> same record, which is a poor database design. If you're going to need
> to use this table in the future, it would be better to refine your
> structure. You should really have one table for a Person (or Client,
> or whatever you call them) and another child table for Loan (with each
> LoanNumber and related fields in each row).
>
> >Once I have all the values copied to the top record I will then find these
> >records (along with records that had only one loan number) and export them as
> >a text file.

>
> For what purpose? That text file will not be well structured either.
>
> Armen Stein
> Microsoft Access MVP
> www.JStreetTech.com
>
>

Thanks for the reply, Armen,

The ultimate goal is to export a text file from Access and bring it into
PostalSoft, our direct mail application. PostalSoft does not give us an
option to build tables. It simply displays data in one flat file.

We receive data from our clients in various formats, usually Excel, .csv.,
..dbf or .txt. In this case, the client gave us an Excel file where some of
the records were exactly the same, except for the LoanNumber. I just need to
grab the top record for a particular record/account number and put the
LoanNumber values from the other "related" records into their respective
fields I will create for that purpose (LoanNumber2, LoanNumber3...). in the
top record.

I realize it's poor database design to have those LoanNumber fields in one
table, but I don't have an option to split them out to another table.

Jack
 
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
VBA to delete Duplicate Records (1 column), before which, non-duplicate data merged into remaining row EagleOne@discussions.microsoft.com Microsoft Excel Programming 6 20th Aug 2009 02:40 AM
Delete records when certain records have duplicate column data JVroom Microsoft Excel New Users 0 26th Jan 2009 05:07 PM
Summing data on duplicate records? Markl9869 Microsoft Excel Worksheet Functions 2 21st Nov 2008 05:29 AM
Re: remove duplicate data records Jim Rech Microsoft Excel Discussion 0 14th May 2008 01:33 PM
duplicate records with extra data =?Utf-8?B?Y2hlZXNld2l6ejc2?= Microsoft Access 2 5th Dec 2005 02:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:50 AM.