hi,
i have a code:
basically if the value in the f.cboFltQpiYear is 2006 it should print out the rows with "2006" in the table. however it print out not only 2006 but also all the other years in the table. how to select only for year 2006?
i have a code:
Code:
Dim stDocName As String
Dim f As Form
Set f = Forms!frmFltQpi
stDocName = "FLT Report"
DoCmd.OpenReport stDocName, acPreview, , f.cboFltQpiYear
basically if the value in the f.cboFltQpiYear is 2006 it should print out the rows with "2006" in the table. however it print out not only 2006 but also all the other years in the table. how to select only for year 2006?