473,410 Members | 1,916 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,410 software developers and data experts.

Combine 2 records in one

I need to know urgently how to combine 2 records in 1.
Aug 31 '06 #1
6 3817
PEB
1,418 Expert 1GB
How do you want to combine 2 records in 1? Can you give us an exemple?
Sep 1 '06 #2
How do you want to combine 2 records in 1? Can you give us an exemple?
Record # | LastName | FirstName | Address
-------------------------------------------------------------------------------
1 | Visco | John | Empty
2 | Empty | Empty | 101 Blvd

The address "101 Blvd" should go into field addess. Can You help?
Sep 1 '06 #3
PEB
1,418 Expert 1GB
Ok I understand what is your problem!
In your table unfortunatelly I don't see any way to associate the information of the two rows!

If you have had a simmilar ID in the two records you could proceed to do an aggregate SELCT query and as a result your information should be stored in the same record.

What kind of result do you want?

Change the records in the table doing from 2 records 1

OR

Visualize the information together in a query ?

IN the 2 cases you need a common ID to associate the information that have to be placed!

I suppose that your case is the first one!

And you want to correct the information in your tables!

I imagine that you have a common ID in your rows

So it's better to add a field in your table from type true/ false or Yes / No

After done that you create an Update query and fill this field for all records with value false No

Than you create an Append query in wich you group your information in conformity with this common ID for the records and you mark the field of type Yes/No as Yes

The next step is to execute a Delete query on all records that the field Yes/ No is no If the results with Yes are suitable for you!

I hope that this'll help! And if you don't know how to create a step from here, or other problem write us!

Have a nice day!
Sep 2 '06 #4
MMcCarthy
14,534 Expert Mod 8TB
My suggestion would be to export the data to a csv file. You could then read the file in as a comma delimited text file. Opening a recordset of your new table and adding a new record by taking line 1 and line 2 in and putting them into one local string before reading the appropriate positions in the string as part of the AddNew action on the recordset.


Record # | LastName | FirstName | Address
-------------------------------------------------------------------------------
1 | Visco | John | Empty
2 | Empty | Empty | 101 Blvd

The address "101 Blvd" should go into field addess. Can You help?
Sep 2 '06 #5
chuak
1
Record # | LastName | FirstName | Address
-------------------------------------------------------------------------------
1 | Visco | John | Empty
2 | Empty | Empty | 101 Blvd

The address "101 Blvd" should go into field addess. Can You help?
I encountered the same problem with you too. How do you resolve your problem. Appreciate sharing.
Nov 7 '06 #6
NeoPa
32,556 Expert Mod 16PB
If you have data from two records that you want merged, how do you determine which records should be joined in this way?
This seems to be the crux of the matter.
If you have an identifier in a field which links the relevant records together then there are ways of merging the data - however, that is a prerequisite.
Nov 7 '06 #7

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

Similar topics

8
by: mark | last post by:
Access2000 How do I write a query that combines the CTC field from each record below into one record? I need to concatenate the CTC field with a separator, like below: ...
1
by: snOOp | last post by:
I am trying to combine the data from two similar tables into one query, but I need for all of the records from both tables to show up and I want the ones that have matching 'emplid' to be combined...
1
by: mojo | last post by:
We have set up an Access database with tables x,y, & z where we would like to have multiple people entering data into a table x. Each person has an identical copy of the database on their PC's. ...
5
by: jhutchings | last post by:
Hello everyone, I have a database where I collect shipment data from various tables. However, I have a problem. Whenever I want to see shipping data for orders that were set to ship on or before...
4
by: musicloverlch | last post by:
I have a table with multiple records in it. I am being forced to combine multiple records into one record in order to be uploaded to a website, and I only get one record per client. How can I...
1
by: rdraider | last post by:
Hi all, We have an app that uses SQL 2000. I am trying to track when a code field (selcode) is changed on an order which then causes a status field (status) to change. I tried a trigger but...
10
ryanvmcgee
by: ryanvmcgee | last post by:
Hello, I am fairly new at doing advanced databases outside of excel. I am trying to combine records in a database I will be using, none of the, CONCAT Queries or scripts I have found seem to...
3
by: NCRStinks | last post by:
Hi Every1 Having a slight issue on creating a query to combine 2 queries, this year and last years data. The thing is, I have data for this year for all stores, however on last year I dont for...
1
by: bluereign | last post by:
Thank you for your assistance. I am a novice looking to JOIN and append or combine records from 2 current Tables into 2 new Tables named below. I have been able to JOIN Tables with the script...
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?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.