belovedcej
Programmer
I have a stored procedure which is essentially a select query with a single parameter.
It is returning a single record in a single field.
I want to take that value and put it into my local variable in Access. Can someone tell me how to do that?
This is how I am executing the stored procedure:
It is returning a single record in a single field.
I want to take that value and put it into my local variable in Access. Can someone tell me how to do that?
This is how I am executing the stored procedure:
Code:
Dim strPermissions As String
Dim rst As New ADODB.Recordset
Dim cmd As New ADODB.Command
strPermissions = "CSF"
With cmd
.ActiveConnection = CurrentProject.BaseConnectionString
.CommandType = adCmdStoredProc
.CommandText = "dbo.CSF_get_person_id_sp"
.Parameters.Refresh
.Parameters(1) = strPermissions
Set rst = .Execute
End With