J
JIm
The debug print show a value of 1/5/2004.
get an error message "no value given for one or more required
parameters"
Thanks in advance
Sub FindRecord()
Dim rst As ADODB.Recordset
Dim startdate As Date
Set rst = New ADODB.Recordset
startdate = #1/5/2004#
rst.ActiveConnection = CurrentProject.Connection
rst.CursorType = adOpenStatic
Debug.Print "value of startdate"; startdate
rst.Open "SELECT STATS.Date, STATS.MDPIX from stats WHERE
STATS.Date = startdate ;"
rst.Close
Set rst = Nothing
End Sub
get an error message "no value given for one or more required
parameters"
Thanks in advance
Sub FindRecord()
Dim rst As ADODB.Recordset
Dim startdate As Date
Set rst = New ADODB.Recordset
startdate = #1/5/2004#
rst.ActiveConnection = CurrentProject.Connection
rst.CursorType = adOpenStatic
Debug.Print "value of startdate"; startdate
rst.Open "SELECT STATS.Date, STATS.MDPIX from stats WHERE
STATS.Date = startdate ;"
rst.Close
Set rst = Nothing
End Sub