I've found the same answer all over the place but I can't implement the suggestions and have my code work
. Can anyone see what I'm doing wrong? I really just want to get the recordcount of the recordset to display on my form.
What am I missing????
Thanks All!

Code:
Public Sub CallSP()
Dim cnn As ADODB.Connection
Dim rsSQL As ADODB.Recordset
Dim CmdSQL As ADODB.Command
Dim rsACCESS As ADODB.Recordset
Set cnn = New ADODB.Connection
Dim tName As String
tName = "tTABLE"
cnn.ConnectionString = gSQLConnection
cnn.Open
Set CmdSQL = New ADODB.Command
CmdSQL.ActiveConnection = cnn
With CmdSQL
.CommandText = "[SP_STOREDPROC]"
.CommandType = adCmdStoredProc
.Parameters("@inCompany").Value = "PARAM1"
.Parameters("@CNStatus").Value = "PARAM2"
End With
Set rsSQL = New ADODB.Recordset
rsSQL.Open CmdSQL, , adOpenKeyset, adLockOptimistic
rsSQL.MoveLast
rsSQL.Close
Set rsSQL = Nothing
cnn.Close
Set cnn = Nothing
What am I missing????
Thanks All!