Re: User Defined Functions
- From: "Allen Browne" <AllenBrowne@xxxxxxxxxxxxxx>
- Date: Sat, 30 Dec 2006 23:49:25 +0800
John, the Summary of the article you quotes says:
The Microsoft Jet 4.0 database engine permits you to call unsafe
Microsoft Visual Basic for Applications functions
The UDFs are VBA functions, not SQL functions.
AFAIK, JET SQL does not support CREATE FUNCTION.
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
<JohnCreighton_@xxxxxxxxxxx> wrote in message
news:1167472561.337950.11580@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>From what I read
http://support.microsoft.com/kb/239482
Jet seems to support user-defined functions by I can't find any
examples on the web. I've found examples for other systems e.g.:
CREATE FUNCTION FROMPERSON (P PERSON)
RETURNS ROW (NAME VARCHAR(10), FIRSTNAME VARCHAR(10))
LANGUAGE SQL
CONTAINS SQL
NO EXTERNAL ACTION
DETERMINISTIC
RETURN VALUES (P..NAME, P..FIRSTNAME)
http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp?topic=/com.ibm.db2.udb.doc/admin/r0002426.htm
I've tried to use Jet stored procedures but I can't seem to execute
them as a function from within the query. I only seem to be able call
them as there own query. Could a parameterized query work? Is there a
way to pass parameters via the select statement?
.
- References:
- User Defined Functions
- From: JohnCreighton_
- User Defined Functions
- Prev by Date: Re: User Defined Functions
- Next by Date: RE: Return a weekday on a query
- Previous by thread: Re: User Defined Functions
- Next by thread: Link Two Tables - Missing Information
- Index(es):
Relevant Pages
|
|