Re: Modify duplicate records using VBA code
- From: MLH <CRCI@xxxxxxxxxxxxxx>
- Date: Mon, 30 Jun 2008 12:48:35 -0400
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
This is what I want to do.
OK - Is it a one-time thing? That is,
once you do it, you won't have to
do it again. And, does it matter what
the additional unique identifiers are
that you tack on to the end of the
customer name strings? And last,
do all the records containing cust
name strings have unique index
field values?
Assuming the answers are Yes,
No and Yes respectively. Extract
duped records, outputting only
the [UniqueID] and [CustName]
fields. Using a MakeTable qry
to create the target table would
make this easier. Call it NewTable.
Open NewTable in Design view.
Change the field type of [UniqueID]
to LongInteger if it's AutoNumber.
Add a new field named [ID] to the
table - AutoNumber type. Save the
table. Create a query based on
NewTable, outputting all fields.
Put a calculated field in the query
named [NewCustName] like this...
NewCustName: [CustName] & Trim$(CStr([CustName]))
Run the query. There are your
new customer names. Paste 'em
into a new test copy of your table,
overwriting the previous redundant
values with the new, unique values.
.
- Follow-Ups:
- Re: Modify duplicate records using VBA code
- From: Brett Barry: Go Get Geek!
- Re: Modify duplicate records using VBA code
- References:
- Modify duplicate records using VBA code
- From: Brett Barry: Go Get Geek!
- Re: Modify duplicate records using VBA code
- From: MLH
- Re: Modify duplicate records using VBA code
- From: Brett Barry: Go Get Geek!
- Modify duplicate records using VBA code
- Prev by Date: Re: Modify duplicate records using VBA code
- Next by Date: Re: MsAccess to SqlServer: sp_setapprole problem
- Previous by thread: Re: Modify duplicate records using VBA code
- Next by thread: Re: Modify duplicate records using VBA code
- Index(es):
Relevant Pages
|