Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 2147217900 undefined function

While I trying to run ADO following statement
rs.Open "abcd", cn, adOpenStatic, adLockOptimistic,
adCmdTable
I got error "run time error'-2147217900(80040e14)':
undefined function "abc" in expression

note: abcd is a query defined in access, abc is a function
defined in access to get specific date.
here is query abcd:
SELECT DISTINCT * FROM Order_info INNER JOIN Revenue ON
Order_info.O_ID = Revenue.O_ID
WHERE ( ((Order_info.CONNECT_DT)=abc() );


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 968
Default 2147217900 undefined function

I have never been able to use a user-defined VBA function in an access query
when using ADO/DAO from excel: I do not think its possible except by getting
the recordset and then processing it using the function (which would then
have to be in the Excel VBA space).


regards
Charles
______________________
Decision Models
The Excel Calculation Site.
www.DecisionModels.com

"jinsong" wrote in message
...
While I trying to run ADO following statement
rs.Open "abcd", cn, adOpenStatic, adLockOptimistic,
adCmdTable
I got error "run time error'-2147217900(80040e14)':
undefined function "abc" in expression

note: abcd is a query defined in access, abc is a function
defined in access to get specific date.
here is query abcd:
SELECT DISTINCT * FROM Order_info INNER JOIN Revenue ON
Order_info.O_ID = Revenue.O_ID
WHERE ( ((Order_info.CONNECT_DT)=abc() );




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
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
'Undefined Function' Error in Microsoft Query Jim Molter[_2_] Excel Programming 1 September 9th 03 11:20 AM
Excel 2000 VBA undefined function problem Matt. Excel Programming 1 August 8th 03 04:17 PM


All times are GMT +1. The time now is 10:03 AM.

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"