I have a function in a module ( a very simple one that works well :
Function GetMyVariable()
GetMyVariable = VCODE
End Function
)
that I use to pass parameters into queries .
Typically vcode would carry a "code" to show a fraction of records. In the query itself the criteria reads: GetMyVariable()
I now need to tell the query to show ALL records , and I pass in: Like"*"
It blows up, shows no records !