N
nullGumby
My client has a few dozen queries, most of which prompt for a date
range. The current solution is to use:
SELECT ...
FROM ...
WHERE Date BETWEEN [Enter Start Date] AND [Enter End Date]
Where "[Enter Start Date]" and "[Enter End Date]" are query
parameters. This works, but it's a pain to type " 1 / 1 / 2007 " when
a DateTimePicker would be so much more efficient.
So I want to do something like:
SELECT ...
FROM ...
WHERE udfGetRangeRange()
Where "udfGetRangeRange()" is a function that would return a string
like " Date BETWEEN #1/1/2007# AND #12/31/2007# ".
My issue is getting the "udfGetRangeRange()" so show my form
"fdlgDateRange" modally. And I'm not even sure if this will work--has
anyone tried a similar solution? My other option is to make a wrapper
form for running all these queries, the user would prefer to just
double-click on the one they want.
Thanks.
range. The current solution is to use:
SELECT ...
FROM ...
WHERE Date BETWEEN [Enter Start Date] AND [Enter End Date]
Where "[Enter Start Date]" and "[Enter End Date]" are query
parameters. This works, but it's a pain to type " 1 / 1 / 2007 " when
a DateTimePicker would be so much more efficient.
So I want to do something like:
SELECT ...
FROM ...
WHERE udfGetRangeRange()
Where "udfGetRangeRange()" is a function that would return a string
like " Date BETWEEN #1/1/2007# AND #12/31/2007# ".
My issue is getting the "udfGetRangeRange()" so show my form
"fdlgDateRange" modally. And I'm not even sure if this will work--has
anyone tried a similar solution? My other option is to make a wrapper
form for running all these queries, the user would prefer to just
double-click on the one they want.
Thanks.