View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Slim Jim Slim Jim is offline
external usenet poster
 
Posts: 1
Default Counting records

Hi there

I am connecting to a SQL Server stored procedure in Excel
VBA.

However, I am having difficulty COUNTING the number of
records returned from that Stored Procedure.

I have this code...

Dim conDB As New ADODB.Connection
Dim rstSP As New ADODB.Recordset
Dim strConnect As String

strConnect = "driver={sql server};server=
(local);database=mydb;uid=;pwd=;"


With conDB