J
Jaazaniah
I have a query that compares appointment dates to a range to time
covered by orders. However, I just realized that this will be
problematic when multiple orders come in the future. Here's what I
want to do in pseudo-SQL:
[dtDate] IN
(SELECT [dtAllDates] FROM [DateSource] WHERE [dtAllDates] BETWEEN
{list of dtOrderDate} AND {list of dtOrderExpiry})
It's getting the list straight that's causing my problem. I want the
functions to be useful a decent time into the future without having to
use VBA to create monsterous dynamic SQL strings on the fly (using
iterative WHERE criteria) to get each list. I will if I have to, but
it seems to me, expecially where this code would be found, that it's
an undue processor burden.
IS there a query solution to something like this?
covered by orders. However, I just realized that this will be
problematic when multiple orders come in the future. Here's what I
want to do in pseudo-SQL:
[dtDate] IN
(SELECT [dtAllDates] FROM [DateSource] WHERE [dtAllDates] BETWEEN
{list of dtOrderDate} AND {list of dtOrderExpiry})
It's getting the list straight that's causing my problem. I want the
functions to be useful a decent time into the future without having to
use VBA to create monsterous dynamic SQL strings on the fly (using
iterative WHERE criteria) to get each list. I will if I have to, but
it seems to me, expecially where this code would be found, that it's
an undue processor burden.
IS there a query solution to something like this?