BIG-TABLE contains 1,000 detail records of 10 fields each.
LOOKUP-TABLE contains maybe 50 records of 1 field each.
ID is the field common to both tables, and is the primary key in BIG-TABLE.
Lookup-Table is named “FIRST” (the First subset of records to be printed).
SUBSET-QUERY drives BIG-REPORT, where the ID lookup succeeds,
because “FIRST” is entered to ‘criteria’ cell in SUBSET-QUERY for field ID.
The title “FIRST” is hard-wired in the header of BIG-REPORT (report title).
But I need to print numerous unique record sets from BIG-TABLE.
So I will create many LOOKUP-TABLE(s), named “SECOND”, “THIRD”, etc,
and each next Lookup-Table must be cycled through SUBSET-QUERY.
But I do not want to hand-edit ‘criteria’ to “SECOND” in SUBSET-QUERY,
nor do I want to hand-edit the BIG-REPORT header to “SECOND”.
Rather, I want SUBSET-FORM to accept the parameter “SECOND”;
pass that variable to the ‘criteria’ cell in SUBSET-QUERY for the ID field,
and pass that variable to the header of BIG-REPORT (to label next report).
Can these two properties be exhanged dynamically?
I may redesign:
Create (1) lookup table with columns FIRST to FIFTY by 1,000 records.
Check-boxes would flag records to print (yes/no), and
each report would be looked-up by column name.
But I would still have to pass a variable to the lookup function,
and would still want a way to switch out the report header.
I use Access-2000 and have little experience with code.
LOOKUP-TABLE contains maybe 50 records of 1 field each.
ID is the field common to both tables, and is the primary key in BIG-TABLE.
Lookup-Table is named “FIRST” (the First subset of records to be printed).
SUBSET-QUERY drives BIG-REPORT, where the ID lookup succeeds,
because “FIRST” is entered to ‘criteria’ cell in SUBSET-QUERY for field ID.
The title “FIRST” is hard-wired in the header of BIG-REPORT (report title).
But I need to print numerous unique record sets from BIG-TABLE.
So I will create many LOOKUP-TABLE(s), named “SECOND”, “THIRD”, etc,
and each next Lookup-Table must be cycled through SUBSET-QUERY.
But I do not want to hand-edit ‘criteria’ to “SECOND” in SUBSET-QUERY,
nor do I want to hand-edit the BIG-REPORT header to “SECOND”.
Rather, I want SUBSET-FORM to accept the parameter “SECOND”;
pass that variable to the ‘criteria’ cell in SUBSET-QUERY for the ID field,
and pass that variable to the header of BIG-REPORT (to label next report).
Can these two properties be exhanged dynamically?
I may redesign:
Create (1) lookup table with columns FIRST to FIFTY by 1,000 records.
Check-boxes would flag records to print (yes/no), and
each report would be looked-up by column name.
But I would still have to pass a variable to the lookup function,
and would still want a way to switch out the report header.
I use Access-2000 and have little experience with code.