Creating a report to print labels (to go on manilla folders) for "active" vendors. Our criteria for an "active" vendor is:
1. Status is "A"
2. Last PO activity on/after 1/1/2005 or Vendor record was created on/after 1/1/2006. (The "created on/after" criteria is to catch vendor records recently created but no activity yet).
I know the basics, using two queries:
a) created a Totals query to capture the last PODATE for each vendor.
b) query to feed report:
Fld STATUS MaxPODATE ENTDATE
Tbl VENDOR qryLastPO VENDOR
Cri "A" >= "1/1/2005" >= "1/1/2006"
Question #1
How do I "position" (which criteria rows) the 3 criteria to achieve the "A" and ( "B" or "C" )? I know they are not all on the first row.
Question #2
Can I create the SQL command(s) within the report object and eliminate the 2 queries? In effect, Select {fields} from ... where VENDOR.STATUS = "A" and ( {?}.MaxPODATE >= "1/1/2005" or VENDOR.ENTDATE >= "1/1/2006" ) ...
(I might as maximize taking my skills to a new level).
1. Status is "A"
2. Last PO activity on/after 1/1/2005 or Vendor record was created on/after 1/1/2006. (The "created on/after" criteria is to catch vendor records recently created but no activity yet).
I know the basics, using two queries:
a) created a Totals query to capture the last PODATE for each vendor.
b) query to feed report:
Fld STATUS MaxPODATE ENTDATE
Tbl VENDOR qryLastPO VENDOR
Cri "A" >= "1/1/2005" >= "1/1/2006"
Question #1
How do I "position" (which criteria rows) the 3 criteria to achieve the "A" and ( "B" or "C" )? I know they are not all on the first row.
Question #2
Can I create the SQL command(s) within the report object and eliminate the 2 queries? In effect, Select {fields} from ... where VENDOR.STATUS = "A" and ( {?}.MaxPODATE >= "1/1/2005" or VENDOR.ENTDATE >= "1/1/2006" ) ...
(I might as maximize taking my skills to a new level).