I want to run a stored procedure from a module in a .adp Access program.
Code would be similiar to:
Even through I know the store procedure named "MyProc" exists I still get an error message saying Access can't find the object.
I then iterated through the obj.AllStoredProcedures and tried the "DoCmd" again on the name Access found but I still get the same error message. (i.e. Access finds it and then tells me it doesn't exist!)
I've been to MSDN, I've searched this site's FAQ's, and I've also tried every different syntax I can think of but still no success.
(I've also tried:
which is what the documentation recommends but I still get the same error message.)
I'm running MS Access 2000 and MS SQL 2000 Server.
Any suggestions would be greatly appreciated.
Thanks!
-Leon
Code would be similiar to:
Code:
DoCmd.OpenStoredProcedure("MyProc")
Even through I know the store procedure named "MyProc" exists I still get an error message saying Access can't find the object.
I then iterated through the obj.AllStoredProcedures and tried the "DoCmd" again on the name Access found but I still get the same error message. (i.e. Access finds it and then tells me it doesn't exist!)
I've been to MSDN, I've searched this site's FAQ's, and I've also tried every different syntax I can think of but still no success.
(I've also tried:
Code:
DoCmd.OpenView "MyProc"
which is what the documentation recommends but I still get the same error message.)
I'm running MS Access 2000 and MS SQL 2000 Server.
Any suggestions would be greatly appreciated.
Thanks!
-Leon