A
Amy E. Baggott
I am building a dialog box to allow users to generate mailing or broadcast
email/fax list of either all our companies or exclude the ones who are
exhibiting in the current show. I have two base queries that generate full
contact data for these two groups. However, I am trying to build a dialog
that will let the user choose from three record selection options (all
companies, by specified product category, or by specified state(s)), then
select which fields to include (all fields for mailing, or just company,
contact name, phone, fax, and e-mail for broadcast) and whether or not to
include current exhibitors. If I use a separate query for each circumstance,
that works out to 12 queries. So I am trying to use a QueryDef to modify my
base query on the fly to use only the selected fields and/or filter for
product category or state.
The problem is that when I actually try to run the code, I get "item not
found in this collection" even though the base queries exist and run in the
database window. What am I doing wrong?
email/fax list of either all our companies or exclude the ones who are
exhibiting in the current show. I have two base queries that generate full
contact data for these two groups. However, I am trying to build a dialog
that will let the user choose from three record selection options (all
companies, by specified product category, or by specified state(s)), then
select which fields to include (all fields for mailing, or just company,
contact name, phone, fax, and e-mail for broadcast) and whether or not to
include current exhibitors. If I use a separate query for each circumstance,
that works out to 12 queries. So I am trying to use a QueryDef to modify my
base query on the fly to use only the selected fields and/or filter for
product category or state.
The problem is that when I actually try to run the code, I get "item not
found in this collection" even though the base queries exist and run in the
database window. What am I doing wrong?