Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 'Undefined Function' Error in Microsoft Query

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?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 67
Default 'Undefined Function' Error in Microsoft Query

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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel error: Undefined Function 'InStrRev' in Expression TerryD Excel Worksheet Functions 4 February 6th 07 02:43 PM
Microsoft Query Error w/ Navision Laura Excel Discussion (Misc queries) 0 October 2nd 06 06:35 PM
Undefined function error CLamar Excel Discussion (Misc queries) 3 June 5th 06 07:07 PM
undefined function error when creating xls pivot from mdb qry andrew Excel Worksheet Functions 0 July 29th 05 07:26 PM
Microsoft Query rejects "nz" function in Access Query Vaughan Excel Discussion (Misc queries) 0 May 4th 05 05:20 PM


All times are GMT +1. The time now is 09:03 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"