Hope this doesn't seem too simple. I've looked this up but I'm not so good at SQL user defined functions and their use so I'm not sure what's going on. Who fancies a few points for telling me why I'm getting the error:Hope this doesn't seem too simple. I've looked