I am not sure exactly what is going wrong here...I have a created query that runs upon loading and I need to pass in different values based on who is logging in...
So I have a UDF that works fine when I am running it on a recordset, but does now work when I use it in the query...it returns nothing even though I check to make sure it is returning the proper values.
Basically I have the following:
WHERE ((t.JanSAM IN (strEmpArrVal())) with strEmpArrVal being the UDF returning a string of values which are formatted properly ('name1', 'name2', name3', etc...). Again, I am wondering why this works properly when I run an SQL statement against a recordset in code but not in the query with the same SQL statement.
Does anyone know why this is not working properly? Can I simply update the QueryDef to take the string value itself once I get it?