Iam using using TempVars to change the controls of the query, below is the code
TempVars.Add "tvyr", Trim(Me.cmbCropYear.Value)
Me.RecordSource = "SELECT * FROM [qryNNDocsDue]"
Me.Requery
But the result shown in the datasheet form is for all the Years. Am i writing something wrong here?
Pls...