I have an Access query that has a some what complex field on it. Basically, I'm searching for a certain value, based on other derived criteria. The function either works, or it gives a #Func!
error. There are a few reasons why I may get an error. That is fine, because in those cases I want to return Null
.
How can I test and handle a #Func!
error from within a query? Also, I tried to wrap the expression in an IsError()
method, and handle that case. That still didn't work.
I don't think this is the optimal solution, however, my hope is that the "higher powers that be" within Microsoft that manage Microsoft Access understand exception handling and would provide some way of testing and handling/ignoring errors, where appropriate.
Regardless, in my case I found a hack to the problem. I save the query just as it was and I exported it to a table. Since this was a one-off exercise, I was able to extract the necessary data and then filter out all Null
values from the newly created table.
It worked, but it feels like a really poor hack.