G
GBA
do not understand how to assign the report's record source as an SQL statement
or a string variable in VBA, assigned in Report_Open.
to date have only used an established query with a name in the query objects
area.
the user (non db technical) needs to derive a report based on a widely
flexible set of criteria. All fields will always show - which makes it
easier...but the criteria applied to those fields can vary widely. I can
give them a form with textboxes that will allow me to build an sql
statement...ironically on this part I am ok...building the sql statement.
my unclear points:
a. would I just be manipulating the 'Where' clause of the report open - or
am I creating a whole new record source for the report ?
b. if a new record source - can I / do I first open the recordset by itself
(i.e. trigger the query) in order to trouble shoot that before sourcing the
report on it...how?
c. how does one set the record source of the report to an sql statement
that is not existing in the queries objects area?...just type in the name in
the record source field??..or is it in the opening argument...
or a string variable in VBA, assigned in Report_Open.
to date have only used an established query with a name in the query objects
area.
the user (non db technical) needs to derive a report based on a widely
flexible set of criteria. All fields will always show - which makes it
easier...but the criteria applied to those fields can vary widely. I can
give them a form with textboxes that will allow me to build an sql
statement...ironically on this part I am ok...building the sql statement.
my unclear points:
a. would I just be manipulating the 'Where' clause of the report open - or
am I creating a whole new record source for the report ?
b. if a new record source - can I / do I first open the recordset by itself
(i.e. trigger the query) in order to trouble shoot that before sourcing the
report on it...how?
c. how does one set the record source of the report to an sql statement
that is not existing in the queries objects area?...just type in the name in
the record source field??..or is it in the opening argument...