473,499 Members | 1,618 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Comparison between two Access tables

Hello,

Any help with this problem will be greatly appreciated.

I am trying to compare two tables containing similar bills of
materials, both tables have an ID(unique)field a PartNumber field and a
Description field. The part No and Description fields do have multiple
entries of the same data and cannot be unique. I need to extract the
common parts between both tables into a new table which only shows me
the data once.

Any Ideas !!

Thanks, Corky

Nov 13 '05 #1
2 1195
Hi Corky,

Try running two queries, note they omit any mention of the ID field:

This first one has been saved as qryUnionPartDesc

SELECT tblFirst.PartNumber, tblFirst.Description FROM tblFirst
UNION SELECT tblSecond.PartNumber, tblSecond.Description FROM tblSecond;

followed by this make table query:

SELECT qryUnionPartDesc.PartNumber, qryUnionPartDesc.Description INTO
tblCombined
FROM qryUnionPartDesc;

HTH -Linda

<le********@flight-refuelling.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Hello,

Any help with this problem will be greatly appreciated.

I am trying to compare two tables containing similar bills of
materials, both tables have an ID(unique)field a PartNumber field and a
Description field. The part No and Description fields do have multiple
entries of the same data and cannot be unique. I need to extract the
common parts between both tables into a new table which only shows me
the data once.

Any Ideas !!

Thanks, Corky

Nov 13 '05 #2
Thankyou for you help it has worked perfectly.

After running the query's I have found that the common parts in these
tables do actually have different quantity's, is there any way in which
I can add a field into this query that adds the two qty's together and
displays it next to the part number and description ??

Regards

Corky

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2964
by: Daniel Fisher | last post by:
Hi All! I'm fairly new to PhP and basicly trying to learn right now. Now I have a problem - I have a fairly large collection of movies which people keep borrowing from me. And then not returning....
5
2811
by: democratix | last post by:
Hi, I've only got a couple years experience developing for Access but have recently been experimenting with HTML/javascript for gui and client-side scripting, mysql for database and php for...
0
1882
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool This article makes a detailed comparison among SourceAnyWhere, SourceOffSite, VSS...
0
1541
by: Tim Brooks | last post by:
All, I'm hoping one of you Xml or Data gurus can offer an opinion. I'm working on an app to basically compare two semi-structured data files (e.g. Excel / CSV) to one another. But I need to...
5
5656
by: mayamorning123 | last post by:
A comparison among six VSS remote tools including SourceOffSite , SourceAnyWhere, VSS Connect, SourceXT, VSS Remoting, VSS.NET To view the full article, please visit...
0
1404
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool This article makes a detailed comparison among SourceAnyWhere, SourceOffSite, VSS...
7
1792
by: matt | last post by:
hello, i have been given a challenging project at my org. i work on an inventory management web application -- keeping tracking of parts assigned to projects. in the past, i built an in-house...
1
1885
by: saundap | last post by:
Hi, Access 2000, Windows 2000 Professional I have a form I've developed that is designed for those not familiar with access and its query tool. WIthin a subform in the form there is presented...
3
1952
by: tdes42 | last post by:
I believe I am looking for some form of Join Query, but my understanding of Access logic and my logic do not yet click entirely…. I have a table of ocean buoy data, taken every hour over many...
5
1764
by: Addy Smith | last post by:
I have 2 tables with different versions in access. Both are same but the latest version obviously has some new records and some deleted records from the previous version. How would I compare the new...
0
7132
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
7178
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
7223
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...
1
6899
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
7390
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...
1
4919
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
4602
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...
0
3094
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.