It may be the "and JobHead.PartNum = JobOper.PartNum" in the first join,
try removing it.
Patrick Winter
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of melissa hietala
Sent: Tuesday, April 03, 2012 5:15 PM
To: vantage@yahoogroups.com
Subject: [Vantage] BAQ question
I am trying to create a BAQ that shows me any open jobs where a
operation is complete but any material lines(tools) related to that op
are not issued complete. Here is my Phrase Builder information:
for each JobHead no-lock where JobHead.JobClosed = False , each
JobOper no-lock where (JobHead.Company = JobOper.Company and
JobHead.JobNum = JobOper.JobNum and JobHead.PartNum = JobOper.PartNum )
and JobOper.OpComplete = True , each JobMtl no-lock where
(JobOper.Company = JobMtl.Company and JobOper.JobNum = JobMtl.JobNum and
JobOper.OprSeq = JobMtl.RelatedOperation ) and JobMtl.IssuedComplete =
False .
I get no records, yet when I use all the same tables, fields, criteria,
joins, I get 10 pages in Crystal. What am I missing?
If I do not have the criteria on for only open jobs and let it run wide
open or for closed jobs I get records back. Am I missing a join or
something on the tables? Do I need to add another table in between
somewhere?
Thanks,
Melissa Hietala
UMC, Inc.
melissah@... <mailto:melissah%40ultramc.com>
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
try removing it.
Patrick Winter
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of melissa hietala
Sent: Tuesday, April 03, 2012 5:15 PM
To: vantage@yahoogroups.com
Subject: [Vantage] BAQ question
I am trying to create a BAQ that shows me any open jobs where a
operation is complete but any material lines(tools) related to that op
are not issued complete. Here is my Phrase Builder information:
for each JobHead no-lock where JobHead.JobClosed = False , each
JobOper no-lock where (JobHead.Company = JobOper.Company and
JobHead.JobNum = JobOper.JobNum and JobHead.PartNum = JobOper.PartNum )
and JobOper.OpComplete = True , each JobMtl no-lock where
(JobOper.Company = JobMtl.Company and JobOper.JobNum = JobMtl.JobNum and
JobOper.OprSeq = JobMtl.RelatedOperation ) and JobMtl.IssuedComplete =
False .
I get no records, yet when I use all the same tables, fields, criteria,
joins, I get 10 pages in Crystal. What am I missing?
If I do not have the criteria on for only open jobs and let it run wide
open or for closed jobs I get records back. Am I missing a join or
something on the tables? Do I need to add another table in between
somewhere?
Thanks,
Melissa Hietala
UMC, Inc.
melissah@... <mailto:melissah%40ultramc.com>
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]