marklerman
Programmer
I want to have an Access 97 database call a SQL Server stored procedure, pass it parameters, and retrieve the results of that procedure's final select statement. The SQL Server database is defined in ODBC.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
"Sales By Year" "01/01/1996","12/31/1996"
Private Sub cmdSalesByYear_Click()
Dim qdf As QueryDef
On Error Resume Next
Set qdf = CurrentDb.QueryDefs("qryNWindCS_SalesByYear")
With qdf
.SQL = """Sales By Year"" """ _
& Me!StartDate & """,""" _
& Me!EndDate & """"
End With
Set qdf = Nothing
DoCmd.OpenQuery "qryNwindCS_SalesByYear", acViewNormal
End Sub
EXEC myStoredProc '01/01/2003','12/31/2003',50000.00