If you mean you are trying to relate records based on the time in the other
table being between the Start time and End time in the first table then you
need a query with SQL that looks like
SELECT P.*, T.*
FROM [TableProduct] as P INNER JOIN [TableTempData] As T
ON T.[Time] <= P.[Time Ended] AND T.[Time]>=P.[Time Started]
I used aliases for the table names so typing the SQL would be easier. This
type of join cannot be made in the Query Design view, but must be constructed
in the SQL view.
If you want to do this in Query Design view
== Add both tables with NO JOIN between them
== Add the fields you want to see
== Under the Time field enter criteria
Between [ProductTable].[Time Started] and [ProductTable].[Time Ended]
(Use your table and field names)
John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County