Private Sub Calendar0_DblClick()
'''Declare Variables
Dim qdf As DAO.QueryDef
Dim rst As Recordset
'''Get stored parameter query
Set qdf = CurrentDb.QueryDefs("WinnersQuery")
'''Fill in the parameters with the correct value
qdf.Parameters(0) = Calendar0.Value
'''Perform the query
Set rst = qdf.OpenRecordset
'''Send recordset data to temp table (***Need help here!***)
rst.Close
qdf.Close
Set rst = Nothing
Set qdf = Nothing
End Sub
|