Oh wait, now that I tried to imlement it I am getting a "The expression you entered is too complex" error in the Query when I try to build the function call (I assume because of the amount of arguments).
Now I'm back to square one, however I have rewritten the function to work (from the VB...