G
Guest
Hi there,
I've been struggling with this for a while now and wonder if you can help me
out.
I've got a couple of functions that each return a date. There's
GetStartDate And GetEndDate. These two functions are referred to in quite a
large number of queries within the Where clause as 'Between GetStartDate()
And GetEndDate()'. However, as the dates could refer to one of a couple of
dates I thought I'd change the functions so that they require an integer to
indicate which date should apply (ie GetStartDate(1) would refer to
#1/4/2004#, GetStartDate(2) would refer to #1/1/2005#. But, I don't want to
specify which integer(date) should apply within the query but within some
code instead. How would I call the function from within the query design
grid so that the integer is 'obtained' from the code?
I'm getting in a muddle and can't seem to find a way out.
Many thanks (as always)
Lee
I've been struggling with this for a while now and wonder if you can help me
out.
I've got a couple of functions that each return a date. There's
GetStartDate And GetEndDate. These two functions are referred to in quite a
large number of queries within the Where clause as 'Between GetStartDate()
And GetEndDate()'. However, as the dates could refer to one of a couple of
dates I thought I'd change the functions so that they require an integer to
indicate which date should apply (ie GetStartDate(1) would refer to
#1/4/2004#, GetStartDate(2) would refer to #1/1/2005#. But, I don't want to
specify which integer(date) should apply within the query but within some
code instead. How would I call the function from within the query design
grid so that the integer is 'obtained' from the code?
I'm getting in a muddle and can't seem to find a way out.
Many thanks (as always)
Lee