Hi Martin
thanks for the response. The connection was made (it seemed to go slower with the ADOX catalog than an ADO connection), but no data was returned. I don't understand why this is so difficult with access but so easy with SQL Server, you'd think it would be the other way around. Anyway, here is what I've got so far:
CODE
Dim cmd As New ADODB.Command
Dim rec As New ADODB.Recordset
Dim cat As New ADOX.Catalog
Dim strStartDate As String
Dim strEndDate As String
Dim i As Integer
Dim rng As Range
strStartDate = InputBox("Enter Start Date:")
strEndDate = InputBox("Enter End Date:")
'cnn.Open "Provider=" & acProvider & "Data Source=" & acDB_Path
cat.ActiveConnection = "Provider=" & acProvider & "Data Source=" & acDB_Path
Set cmd = cat.Procedures("qry_SubVendor_QOP_Starts").Command
With cmd
'.ActiveConnection = cnn
'.CommandText = "qry_SubVendor_QOP_Starts"
'.CommandType = adCmdStoredProc
.Parameters("[Start Date:]") = strStartDate
.Parameters("[End Date:]") = strEndDate
MsgBox .Parameters("[Start Date:]")
'.Parameters.Append .CreateParameter("[Start Date:]", _
adDate, adParamInput, , strStartDate)
'.Parameters.Append .CreateParameter("[End Date:]", _
adDate, adParamInput, , strEndDate)
Set rec = .Execute
End With
Set rng = Worksheets("Starts").Range("a2")
CopyRecordset rec, rng
rec.Close
Thanks for your help,
-B