• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 107
  • Last Modified:

Run Access query with functions - Excel

I have a query in Access 2010 that calls a function within the database. The query runs successfully when run inside Access. My question is when I try to call this query through VBA in Excel, it does not recognize the function and errors out. Is this possible to perform in Excel?
0
mak345
Asked:
mak345
  • 2
  • 2
  • 2
1 Solution
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
in short, some functions are accessible from within access, but must be named differently when called from outside (using a different library, in short ADO vs DAO)
the solution is to either use DAO connection (JET library) when connecting from excel, or to change the function name.
0
 
NorieVBA ExpertCommented:
Is the function something that you, or someone else, has created rather than a standard Access function?
0
 
mak345Author Commented:
It is a function I created.
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
NorieVBA ExpertCommented:
What does the function do?
0
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
via ADO/DAO, you cannot call your user functions, as far as I know
0
 
mak345Author Commented:
Thanks, wasn't sure if it was even possible.  Doesn't seem like it is.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

  • 2
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now