Larry,
I have a form where the customer uses a listbox to select the topics for
their report. The topics become a query filter used to extract the data
from
a table.
The problem is printing the topic with "No events this month" under the
topic on the report.
For a vague example, lets say the customer is looking for information on
events involving aircraft hydraulic pumps, landing gear struts, and VHF
Radios. They select these in the listbox on frmPrintReport. The form
populates an array with the customer's request. I then populate the "WHERE
[tblPARTS].[PART_NOMENCLATURE] =" clause of my query using the data from
the
array. The query, of course, does not give any indication of not finding
one
of the members of the "WHERE" clause. Consequently, there is no indication
on
the report of a null search result for the respective part.
I'm probably being as clear as mud, but this is my challenge.
Regards,
Pete
Larry Linson said:
As Doug has already explained, Access does not support using arrays as
the
RecordSource for a report. Just as a matter of interest, if the data in
the
array does not itself come from tables or queries in the database, where
_does_ it originate?
Consider writing the data from the array to a temporary table and running
the report using that table data (or a query against it) as the record
source. If you decide to do this, I strongly suggest you look at MVP Tony
Toews site for the example of creating a temporary database to contain
the
temporary tables, then deleting the temporary database when done, to
avoid
bloating of your own database.
Larry Linson
Microsoft Access MVP