UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Issue Calling Msaccess Query Function In Excel, Office 2003    
 
   
arul
post Apr 3 2012, 05:10 PM
Post #1

UtterAccess Enthusiast
Posts: 51



Hi All

I have a ms access query which calls user defined function to generate the data. It works like a charm when i run the query in Ms Access; however, when i try to run the same query in Excel 2003 using Data -> Import External Data -> New Database Query I get the an error "Undefined function <FunctionName> in expression'.

Any information on this would be of great help.


Cheers
Arul

Attached File(s)
Attached File  1.JPG ( 9.22K ) Number of downloads: 5
 
Go to the top of the page
 
+
Doug Steele
post Apr 3 2012, 05:54 PM
Post #2

UtterAccess VIP
Posts: 17,644
From: Don Mills, ON (Canada)



Sounds as though you're trying to use a user-defined function in your query. That's only possible if the query runs from within Access, not if it runs from any other client.
Go to the top of the page
 
+
guerillaunit
post Apr 4 2012, 03:16 PM
Post #3

UtterAccess Veteran
Posts: 354



In Excel, go to "Tools" → "Macros" → "Visual Basic Editor". Copy and paste the function code for "fReminders" from Access (you'll find it in one of your modules). You now have the function defined in Excel
Go to the top of the page
 
+
Doug Steele
post Apr 4 2012, 03:49 PM
Post #4

UtterAccess VIP
Posts: 17,644
From: Don Mills, ON (Canada)



While that's true that that will put the function in Excel, you still won't be able to use it in a query.
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 25th May 2013 - 07:08 PM