Since this is the ADP group, I will assume that is what you are using. And,
since an ADP (Access Data Project) is a direct link into a SQL server, in
the database window there will be a list of stored procedures and views
under queries. You can just double click one to run it.....
With that said, there are a couple of ways to execute a stored procedure in
an ADP other than from the database window. It can be the record source
for a form or report. Or you can execute it in VBA using an ADODB Command.
Using VBA you can return a single value or a recordset.
Here is an example of a VBA function I use to get the current SQL user by
getting an output parameter from a stored procedure.
Public Function GetUser() As String
Dim cmd As ADODB.Command
Dim prm As ADODB.Parameter
Set cmd = New ADODB.Command
cmd.ActiveConnection = CurrentProject.Connection
cmd.CommandText = "sp_CurrentUser"
cmd.CommandType = adCmdStoredProc
Set prm = cmd.CreateParameter("strCurrentUser", adVarChar,
adParamOutput, 20)
cmd.Parameters.Append prm
cmd.Execute
GetUser = cmd.Parameters("strCurrentUser")
Set prm = Nothing
Set cmd = Nothing
End Function
HTH,
Jim