I'm having trouble with a query when trying to list everything in my table. I have placed a function which passes a global variable into the query builder. The variable is selected by a combo box. This all works great when I want to only list part of the table but I am unsure how to pass a wildcard with this function..
He's my function code...
I expected when the function = "" (nothing) then it will list everything.. but it lists nothing.
I have also tried * but still no luck. Is there a wildcard value I can use ?
thanks
Steve
He's my function code...
Code:
Function GetDept()
If currentdept = "SHOW ALL" Then GetDept = "" Else GetDept = currentdept
End Function
I expected when the function = "" (nothing) then it will list everything.. but it lists nothing.
I have also tried * but still no luck. Is there a wildcard value I can use ?
thanks
Steve