Hi Angela. Ah, I think I'm starting to understand. You want to use
the StartDate and EndDate in the table you mentioned in your first
message to filter the records that show up in your query. You could
use a cross join for this. The syntax would be like the following, if
we assume that you want to pull records from a table called Orders
that have an EnteredDate within the date range of the selected record
in a table called ReportCriteria.
Select o.*
from Orders as o cross join ReportCriteria as c
where (c.Selected is True) and (o.EnteredDate between c.StartDate and
c.EndDate)
A warning: if more than one criteria record is selected you'll get
multiple sets of records--duplicates--so you would want to take care
that only one record is selected at time.
Hope this helps.
Karl
Karl Hoaglund, MCSD
Microsoft Access Programmer
http://www.nexuscgi.net