arnelgp
..forever waiting... waiting for jellybean!
- Local time
- Tomorrow, 02:46
- Joined
- May 7, 2009
- Messages
- 20,223
if you are getting parameter error,
just put again the parameter in the querydef:
just replace yourForm, start_date_textbox, end_date_textbox with
the propername for your form and textboxes.
just put again the parameter in the querydef:
Code:
Dim rst As DAO.Recordset
With CurrentDb.QueryDefs("KPICOLLECTIVE")
'first parameter
.Parameters(0) = [Forms]![yourForm]![start_date_textbox]
.Parameters(1) = [Forms]![yourForm]![end_date_textbox]
Set rst = .OpenRecordset
End With
just replace yourForm, start_date_textbox, end_date_textbox with
the propername for your form and textboxes.