I am trying to add a function into an SQL statement. I did this in an Access DB where the function was defined in a code module. If I try the same thing from within VB I get an error regarding the function I am trying to use. I've got the function in a module and made it public, still no joy. Could it be that funtions (apart from VB functions) are not allowed in a VB driven SQL statement??