|
Hi there.
This is the code i am using to create a parameter and pass.
startDate=replace(startDate, "-","")+"000000"
endDate=replace(endDate, "-","")+"235959"
timeStamp1 = startdate
timeStamp2 = endDate
'ParamString = SQLFormatOut(timeStamp1, datetime, True) & ", " & _
' SQLFormatOut(timeStamp2, datetime, True)
Set oRS = oConn.Execute("EXEC getLornasReport " ) '& ParamString
|