Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use a UDF in SQL ?
Message
General information
Forum:
Visual Basic
Category:
Database DAO/RDO/ODBC/ADO
Miscellaneous
Thread ID:
00747648
Message ID:
00748074
Views:
21
Vin,
That is actually what I was trying to do:
INSERT INTO tblTemp SELECT MyUDF(A.Full_name) AS LName FROM EMPLOYEES AS A

I tried putting the Public MyDDF() in the SAME Form module, in another Class module, and in a Standard module.
But, MyUDF() was always undefined. What is the "dbo." ? Any idea where I should put MyUDF()?

BTW, I'm using VB6 and connecting to an Access97 database via ADO. Both tables are in the Access database.

Thanks for trying to help.



>>>
You can, however call the UDF as part of a select statement to acheive the result:

rs.open "SELECT dbo.MyUDF('param1', 'param2') AS Result"
<<<
Steve H
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform