P
PAH
I am trying to build a user interface (form) that will allow a user to view a
datasheet based on a SQL code entered (Select, Union, Exec Stored Procedure
etc.) in an .adp.
In an .mdb this can be done by creating a passthrough query that is saved,
and then run using "DoCmd.OpenQuery queryname".
In an .adp, the commands "DoCmd.OpenStoredProcedure spname" and
"DoCmd.OpenView" exist, but do not allow arguments to be automatically passed.
I would like to run a statement like "Select * from employee E where E.LName
= 'Smith'" without having to save it as a specific view...
or --- "exec StoredProcWorkDone @employeeID = 10"
TIA
datasheet based on a SQL code entered (Select, Union, Exec Stored Procedure
etc.) in an .adp.
In an .mdb this can be done by creating a passthrough query that is saved,
and then run using "DoCmd.OpenQuery queryname".
In an .adp, the commands "DoCmd.OpenStoredProcedure spname" and
"DoCmd.OpenView" exist, but do not allow arguments to be automatically passed.
I would like to run a statement like "Select * from employee E where E.LName
= 'Smith'" without having to save it as a specific view...
or --- "exec StoredProcWorkDone @employeeID = 10"
TIA