My Assistant
![]() ![]() |
|
|
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)
|
|
|
|
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.
|
|
|
|
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
|
|
|
|
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 Top · Lo-Fi Version | Time is now: 25th May 2013 - 07:08 PM |