Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

[externally] invoking a user-defined function

Status
Not open for further replies.

jadn

Programmer
Oct 28, 2005
23
US
Hello,
I wrote a Function ("funcFlush") and a Query ("qryFlush") that simply calls "funcFlush". If qryFlush is run in the Access IDE, the Function runs, but when I use ADODB to call the query, an error is returned 'undefined function "funcFlush" in expression'.

Why would this [user-defined] function be hidden from external code? Is there a security setting that can cause this? I tried the common fixes - like makeing sure VB\tools\"references" are healthy and verifying up-to-date drivers - but so-far have not identified the cause.

(Access 2000, Win2K)

Any help would be very-much appreciated!
Cheers.
 
... Apparently this is not, even theoretically, possible via ADODB.

If anyone here knows otherwise, please reply!

To quote another thread at "
Sorry, Stefen, the ability to use user-defined VBA functions in a query is a feature provided by Access, and is therefore not available when your queries are executed outside of the Microsoft Access environment.
--
Brendan Reynolds (MVP)
"
 
jadn, I'm really not sure why it isn't working.
But I'm just curious, Using ADO, you're still calling from the iDE, aren't you?

As a recordset? As an ADOX view?
If so, can you show both codes?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top