M
Matthew C. Harad
Hello,
I have an Access Query which has a column which is a value
returned by a function that I have written in VBA in the
associated Access project. This query works fine when I
run it within Access.
However, my application is using Excel as a front end. In
VBA code associated w/ the Excel file I am executing the
query with a recordset ADODB object. I cannot get this to
work. I get an error message "Run-time error '-2147217900
(80040e14)': Invalid SQL statement;
expected 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT', 'UPDATE
'.
What is going on here? I am assuming that I cannot
execute from the Excel VBA project a query in Access which
in turn calls a function written in the associated Access
VBA project. Is this true?
Much appreciated.
Matthew
I have an Access Query which has a column which is a value
returned by a function that I have written in VBA in the
associated Access project. This query works fine when I
run it within Access.
However, my application is using Excel as a front end. In
VBA code associated w/ the Excel file I am executing the
query with a recordset ADODB object. I cannot get this to
work. I get an error message "Run-time error '-2147217900
(80040e14)': Invalid SQL statement;
expected 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT', 'UPDATE
'.
What is going on here? I am assuming that I cannot
execute from the Excel VBA project a query in Access which
in turn calls a function written in the associated Access
VBA project. Is this true?
Much appreciated.
Matthew