G
Guest
I'm trying to use OpenStoredProcedure to execute a SQL query. Below is a
snippet of the relevant code.
stDocName = "sp_PXReport"
DoCmd.OpenStoredProcedure stDocName, acViewNormal, acEdit
Fairly straight forward, the user clicks on a form button that then executes
this event procedure, except that it works for some people and it does not
work for others. The error message that pops up says that it cannot find the
object "sp_PXReport". However, if I have the user go to the queries section
of Access and double click on the stored procedure itself, it executes, which
to me means that it isn't a SQL side permission (and I did doublecheck the
permissions settings anyway, just in case, the users do have EXECUTE granted
to them on that stored procedure), but I don't know what else it could be.
Anyone have any other ideas?
Thank you, Sumi
snippet of the relevant code.
stDocName = "sp_PXReport"
DoCmd.OpenStoredProcedure stDocName, acViewNormal, acEdit
Fairly straight forward, the user clicks on a form button that then executes
this event procedure, except that it works for some people and it does not
work for others. The error message that pops up says that it cannot find the
object "sp_PXReport". However, if I have the user go to the queries section
of Access and double click on the stored procedure itself, it executes, which
to me means that it isn't a SQL side permission (and I did doublecheck the
permissions settings anyway, just in case, the users do have EXECUTE granted
to them on that stored procedure), but I don't know what else it could be.
Anyone have any other ideas?
Thank you, Sumi