S
Six Lombardi's
What I need to do is pull records with certain dates in a particular
field. The reasoning is complex so I won't even try to explain it,
but just imagine you have a field called LastDate and you want to keep
all records where it is equal to 10/1/2010, 12/1/2010, 3/1/2011 or
5/1/2011. Those dates are going to vary based on the date you run
this query, but let's just focus on those dates.
I created a public function called RenDte. In this function I have
logic that sets RenDte to the above dates, i.e. RenDte = "10/1/2010,
12/1/2010, 3/1/2011, 5/1/2011" Now, in the Criteria line at the
bottom of the query view I put "RenDte()" (without the quotes). When
I try to run it, I get a mesage saying "Data type mismatch in query
expression".
Anyone got any suggestions? If I run it with just one date instead of
four, it will work. If I substitute the word "or" for the comma, it
won't work.
field. The reasoning is complex so I won't even try to explain it,
but just imagine you have a field called LastDate and you want to keep
all records where it is equal to 10/1/2010, 12/1/2010, 3/1/2011 or
5/1/2011. Those dates are going to vary based on the date you run
this query, but let's just focus on those dates.
I created a public function called RenDte. In this function I have
logic that sets RenDte to the above dates, i.e. RenDte = "10/1/2010,
12/1/2010, 3/1/2011, 5/1/2011" Now, in the Criteria line at the
bottom of the query view I put "RenDte()" (without the quotes). When
I try to run it, I get a mesage saying "Data type mismatch in query
expression".
Anyone got any suggestions? If I run it with just one date instead of
four, it will work. If I substitute the word "or" for the comma, it
won't work.