Link to home
Start Free TrialLog in
Avatar of mak345
mak345Flag for United States of America

asked on

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?
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

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.
Avatar of Norie
Norie

Is the function something that you, or someone else, has created rather than a standard Access function?
Avatar of mak345

ASKER

It is a function I created.
What does the function do?
ASKER CERTIFIED SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mak345

ASKER

Thanks, wasn't sure if it was even possible.  Doesn't seem like it is.