JennyPeters
Programmer
Why can't I use this code with SQLServer 7 running windows 2000 and Access 2000? It works in Access Xp in 2000 mode on XP Home with SQL7.0. The error states that I am not providing parameters and stops at .Parameters.Refresh. If i remove that line, it then stops at the next line. The error has to be some compatibility problem. What would you suggest?
Dim com As ADODB.Command
Dim rst As ADODB.Recordset
Set com = New ADODB.Command
With com
.ActiveConnection = CurrentProject.Connection
.CommandText = "spInsertIntoTblReportMachines"
.CommandType = adCmdStoredProc
.Parameters.Refresh
.Parameters("@ShiftStart"
= StartDate
.Parameters("@ShiftEnd"
= EndDate
Set rst = .Execute
End With
Thanks,
Jenny
Dim com As ADODB.Command
Dim rst As ADODB.Recordset
Set com = New ADODB.Command
With com
.ActiveConnection = CurrentProject.Connection
.CommandText = "spInsertIntoTblReportMachines"
.CommandType = adCmdStoredProc
.Parameters.Refresh
.Parameters("@ShiftStart"
.Parameters("@ShiftEnd"
Set rst = .Execute
End With
Thanks,
Jenny