I sincerely hope this is just a systax thing...here goes:
I have 2 tables:
parts
=====
partnum descr type
------- ----- -----
A0001 Part1 STxxx
A0002 Part2 FGxxx
A0003 Part3 FGxxx
etc...
pricelist
=========
partnum listname price
------- -------- -----
A0001 A0001a 5.10
A0001 A0001b 1.00
A0001 A0001c 2.00
A0002 A0002a 10.00
A0002 A0002c 3.00
A0003 A0003a 6.00
A0003 A0003b 0.00
A0003 A0003c 1.50
etc...
Report needs to show only parts.type = FG and
1) All parts with a missing A____b pricelist.listname
2) All parts with price = 0.00 for pricelist.listname = A____b
[(1) & (2) must appear in 1 line]
I have LEFT OUTER JOIN'ed parts to pricelist. My selection Criteria:
left({parts.type},2) = "FG" and
(isnull({pricelist.listname})
OR (mid({pricelist.listname},6,1) = "b" and
{parts.partnum} = {pricelist.partnum} and
{pricelist.price} = 0.00))
PROBLEM:
========
Crystal does not return any parts where the A____b record is missing!
Can anyone help me please
Dirk S
dirk@dol.dot.ie
I have 2 tables:
parts
=====
partnum descr type
------- ----- -----
A0001 Part1 STxxx
A0002 Part2 FGxxx
A0003 Part3 FGxxx
etc...
pricelist
=========
partnum listname price
------- -------- -----
A0001 A0001a 5.10
A0001 A0001b 1.00
A0001 A0001c 2.00
A0002 A0002a 10.00
A0002 A0002c 3.00
A0003 A0003a 6.00
A0003 A0003b 0.00
A0003 A0003c 1.50
etc...
Report needs to show only parts.type = FG and
1) All parts with a missing A____b pricelist.listname
2) All parts with price = 0.00 for pricelist.listname = A____b
[(1) & (2) must appear in 1 line]
I have LEFT OUTER JOIN'ed parts to pricelist. My selection Criteria:
left({parts.type},2) = "FG" and
(isnull({pricelist.listname})
OR (mid({pricelist.listname},6,1) = "b" and
{parts.partnum} = {pricelist.partnum} and
{pricelist.price} = 0.00))
PROBLEM:
========
Crystal does not return any parts where the A____b record is missing!
Can anyone help me please
Dirk S
dirk@dol.dot.ie