I have a front-end access database file (mdb) which connects to linked tables from 2 different SQL server databases using ODBC. I want each user to have a similar front-end mdb file but be able to create and store their own queries. I want users to have access to several custom functions, so rather than write those functions in vba I want to have them as functions on the SQL server.
How do I reference a function located on the SQL server to get a result from a front-end mdb with ODBC linked tables.
As an example, lets say I have a function on the server called getColor() that accepts a number 1 thru 10, and returns a string representing a color (ie. "BLUE"). I want to build a query with a result field that calls this function something like...
SELECT ColorID, <sql-server-function>getColor([ColorID]) as ColorName FROM CarCollection;
How do I reference a function located on the SQL server to get a result from a front-end mdb with ODBC linked tables.
As an example, lets say I have a function on the server called getColor() that accepts a number 1 thru 10, and returns a string representing a color (ie. "BLUE"). I want to build a query with a result field that calls this function something like...
SELECT ColorID, <sql-server-function>getColor([ColorID]) as ColorName FROM CarCollection;