I have made user defined functions in Access that I want to call externally through ODBC. I am trying to emulate the same functionality that Oracle has with stored procedures, and replace them with the Access equivalent. These functions are used inside SQL queries. It works when I am working within Access, however, when called through ODBC I get a 'undefined function' error. Is there any possible way to get around this problem. I have tried everything I can think of...any help would be greatly appreciated.
Here is example code:
Public Function to_date(ByVal date_str As String, ByVal form_str As String) As String
to_date=Format(date_str, form_str)
End Function
SELECT STATE, to_date("12/10/1879", "yyyy-mm-dd" FROM SOME_TABLE;
Curtis Wesley
"Party on, dude."