Hi Larry,
Thanks for your suggestion.
If I enter "In(1,4)" (w/o quotes) in the QBE grid it works fine of
course. If I try to return this value in the function used in the
grid I get one of two errors:
#1. If I return "In(1,4)" (with quotes) in my function as a String
or Variant, my query returns nothing.
#2. If I attempt to return "In(1,4)" (w/o quotes) I get a compile
error on my function because it doesn't know what to do with the In()
function. I tried specifying different return types for the function
(I was hopeful that Variant would help me out) but no luck.
Any other ideas?
thanks
-Jay
"Larry Linson" <la**********@ntpcug.org> wrote in message news:<6V*****************@nwrddc02.gnilink.net>...
Try using "In(1,4)" as the criteria, without the quotes, of course.
Larry Linson
Microsoft Access MVP
"i. dzhugashvili" <id***********@hotmail.com> wrote in message
news:13**************************@posting.google.c om... I'm hoping someone can help me here.
I'm having problems using a function to get the search criteria for a
column in the QBE grid. The column's data type is Long and the
problem is that if I want to search on more than one value my function
in the QBE correctly returns "1 Or 4" (for example), but something's
getting garbled and I'm not getting the same data back if I just enter
"1 Or 4" (w/o quotes) in the QBE grid.
My guess is that my function is returning a string and so that's
what's used in the QBE. I tried returning a Variant and I tried a
bunch of other stuff --- but nothing's worked!
Any suggestions would be greatly appreciated.
-id