G
Guest
TIA...
Not sure where to post...
I found info from Access Query group that I could define function and then
use it as variable for query object criteria, so...
I set up a function in a module for my database
Function testjbl()
testjbl = variablename
End Function
I have a button on a form that on click
variablename=7
In a query I set criteria to testjbl()
the query runs but apparently the value is not passed to testjbl()
Any help??? Does it matter where the function code is, module form code??
How should I set the value for variablename so the function uses the value
in the query??
Thanks so much anyone!!
Joel
Not sure where to post...
I found info from Access Query group that I could define function and then
use it as variable for query object criteria, so...
I set up a function in a module for my database
Function testjbl()
testjbl = variablename
End Function
I have a button on a form that on click
variablename=7
In a query I set criteria to testjbl()
the query runs but apparently the value is not passed to testjbl()
Any help??? Does it matter where the function code is, module form code??
How should I set the value for variablename so the function uses the value
in the query??
Thanks so much anyone!!
Joel