Oh wow. Its GRayL!
Thanks for responding. I have a meeting and then I will try. Really thanks for coming to the rescue. I will tell you ASAP, after the meetings.
Todd
Main Topics
Browse All TopicsI really need some help. I have some queries that I need to compare. I will be as specific as i can. If you guys can help me, I really would appreciated it. Company needs badly!
I have two queries.
#1 is BySectGroup
#2 is qryPartOpsView
BySectGroup is a query from a linked table. that table is from notepad that another program creates. There is no primary key to this.
qryPartOpsView is a query that is completely normalized with tables. PartOpersMerge is a many to many relationship to show parts in a certain operation and how many that are needed in that department. Production enters what he thinks he needs. It looks like this
CUSTOMER PARTNO Required Field1 Field2
Boeing 740-0468 0 20 Inject
Boeing 740 -0468 0 40 Wax
Boeing 740-0468 30 50 Cast
BySectGroup is a table that shows me where all the parts are each day and what section they are in. It looks like this
PARTNO CUSTOMER TO (is equal to Field1) SumOfQTY
740-0468 Boeing 40 36
740-0468 Boeing 50 10
740-0468 Boeing 90 0
What I want to do is compare these two queries and create a report I want Access to look at the requirment of 30 pieces in operation 50, and compare it to the 10 pieces in operation 50 from the other query. In otherwords bump the numbers from each query. And if we are short, then I create smth that will change is color or whatever. I can do the frills and thrills. I just cant figure out how to connect these to queries.
Feel free to ask any questions. I am desperate. I have been working on this for a week. I am running out of ideas.
The only way I can connect them is by the PARTNO. I know this is bad for now, (txt datatype) but I cant do anything abt it yet.
Your help is much appreciated I would buy you guys a car instead of points if you can figure this one out!!!
Thanks
Todd
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: GRayLPosted on 2009-10-22 at 10:33:36ID: 25636787
This do it?
SELECT a.Customer, a.PartNo, a.Field1, a.Required, b.SumOfQty FROM qryPartOpsView INNER JOIN BySectGroup b ON a.Customer = b.Customer AND a.PartNo = b.PartNo AND a.Field1 = b.To WHERE a.Required < b.SumOfQty;