473,412 Members | 2,142 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

Merge Data into one feild

17
Hello,

I have another access question.

I have a table and there are record that I want to merge into one field.

Example: (Before)

Field1 Field2
Owner 1 Product A
Owner 1 Product B
Owner 2 Product A
Owner 3 Product A
Owner 4 Product A
Owner 4 Product B
Owner 4 Product C

I want to have a results where
Owner 1 Product A + Product B
Owner 2 Product A
Owner 3 Product A
Owner 4 Product A + product B + Product C

The Field 2 data is a sperate table

Please advise how to do it.

I learning a lot here. .thanks for your help.

Many Thanks
Aug 15 '07 #1
3 1374
First of all if this was excel you'd use the Concatenate command; however, you can do it much easier in Access.

Create a query of the table with the 2 fields. Bring in both fields.

Create an expression and simply use "&" to concatenate strings.

Example:

Field 1 Field 2 Expr: [Field 1]&[Field 2]

one two onetwo
three four threefour

If you need spaces do the following: & " " &
use quotation marks with spaces.
Now you can make a table from your query if needed.

You need to have field data side by side for this to work.
Looks like you may need to make a query based on 2 tables and a subquery.
Aug 16 '07 #2
wongray
17
Hi SwamyKarthik,

Thanks for the reply. However I still have problem and I hope you can assist me.

Let me try to explain a bit detail

I have 2 table which linked to each other

The outcome of the query is

Field1 Field2
ProjectA ProductA
ProjectB ProductA
ProjectB ProductB

I want to have a table that will store this query with

Field1 field3
ProjectA ProductA
ProjectB ProductA ProductB

Which instead of showing 2 row of Project B, it will only show 1 Project B, but the Field 3 will store both Product A + Proudct B

hope this explain and looking forward for your assistant

Cheers
Raymond




First of all if this was excel you'd use the Concatenate command; however, you can do it much easier in Access.

Create a query of the table with the 2 fields. Bring in both fields.

Create an expression and simply use "&" to concatenate strings.

Example:

Field 1 Field 2 Expr: [Field 1]&[Field 2]

one two onetwo
three four threefour

If you need spaces do the following: & " " &
use quotation marks with spaces.
Now you can make a table from your query if needed.

You need to have field data side by side for this to work.
Looks like you may need to make a query based on 2 tables and a subquery.
Aug 16 '07 #3
thrake
5
WooHoo! Works great. Only two more questions. (Other postings)
Aug 29 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Newbie | last post by:
Hi, I am trying to merge data from two tables (over two servers, using dblink). Approx 40,000 records in each. Server1(source) and Server2(dest) On Server1, db-link "dblink1" points to...
3
by: Kevin King | last post by:
I have a question about an assignment I have. I need to count the number of comparisons in my merge sort. I know that the function is roughly nlog(n), but I am definately coming up with too many...
2
by: William Wisnieski | last post by:
Hi Everyone, Access 2000 I have some code behind a button that performs a word merge with a query data source. The merge works fine. But what I'd like to do somehow is after the merge is...
1
by: Lisa | last post by:
I have a query named QryDept where one of the fields is DeptID. The query is used for the data source of a mail merge letter. I would like to control which department is to get the mail merge...
8
by: Squirrel | last post by:
Hi everyone, I've created a mail merge Word doc. (using Office XP) , the data source is an Access query. Functionality I'm attempting to set up is: User sets a boolean field to true for...
3
by: Andy Davis | last post by:
I have set up a mail merge document in Word 2003 which gets its data from my Access 2000 database. I want to set up a button on a form that: 1. runs the query to provide the dat for the merge...
13
by: farhaaad | last post by:
Dears, I have many feilds in my tables that are left blank for some records, If I make a sub table for it and and change those feilds to a lookup feilds so only those options are chosen which...
5
by: jaemalegaon | last post by:
Hi , This Is Adarsh Jain Form Malegaon , A Remote Area In Dist Of Nashik, Maharastra(india), Wants Help In Arraning Data Record Of A Table According To Date Feild Of Data Record Of Same Table, I.e...
2
by: ALaurie10 | last post by:
I have an excel file in Accounting Format, my feild names go down the page and the data goes across. There are four values for each feild. After importing my excel file into a table, the feilds are...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.