dbTalk Databases Forums  

Combine records

comp.database.ms-access comp.database.ms-access


Discuss Combine records in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
JCA
 
Posts: n/a

Default Combine records - 08-21-2003 , 10:50 PM






How can I combine two records and all its fields in Access? For
example if I have a part number that got replaced with a new part
number. I need to combine the sales of both records but only take the
value of the old record for text string fields. For example if I have
a database with 2000 parts and 5 of these parts are new I need to add
the history of the corresponding old parts to the new parts for
history purposes. All help greatly appreciated.

Thanks!
JCA

Reply With Quote
  #2  
Old   
LWD
 
Posts: n/a

Default Re: Combine records - 08-22-2003 , 12:09 AM






Hi, JCA

I can't tell exactly what you're trying to do, but it sounds to me as if you
want to concatenate - i.e., combine two text fields into a third.

This is done using the "&" symbol.

Open up a query and add the table with the values you want.

Say there's a field called OldPartName and there's a field called
NewPartName.

You then set up a select query with the field OldPartName&NewPartName to get
the result you want.

If you prefer, you can run a Make Table query to create a permanent new
table.

L.



Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.