'Undefined Function' Error in Microsoft Query

  • Thread starter Thread starter Jim Molter
  • Start date Start date
J

Jim Molter

Have an Access 2000 query that utilizes a user-defined
function that I wrote in Access VBA. Query and Function
work fine in Access, but when I try to use the query as a
data source for an Excel Pivot Table, MS Query returns
an "Undefined Function" error.

Is there any way to work around this limitation?
 
Hi Jim,
Have an Access 2000 query that utilizes a user-defined
function that I wrote in Access VBA. Query and Function
work fine in Access, but when I try to use the query as a
data source for an Excel Pivot Table, MS Query returns
an "Undefined Function" error.

Is there any way to work around this limitation?

There are two alternatives

1) If the function isn't too difficult, you might be able to include
directly in the query - i.e. instead of the VBA call

2) Instead of using MS Query, use automation to open Access, open the
database, run the query in Access and copy the results to Excel.

Regards

Stephen Bullen
Microsoft MVP - Excel
www.BMSLtd.co.uk
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top