Hello,
I am working on my very first Access Database and I amtotally brain locked on one of the last steps. My goal is to be able to selectthe operator by name including either the date or date range then display theresults in a report. My issue is withthe set up a Combo Box Filter of a Query; I cannot get it to filter theOperator field. Everything else works except the filter by name… If I remove thecriteria in the Operator Name field in the Query, I get results for everyoperator and when I add the criteria back I get zero results. Any ideas were Ihave missed a step?
Query
‘Created from a separateUnion Query
Name: qryUnionQryOperatorbyOp
Criteria
‘ to filterby OperatorFirstName
[Forms]![frmProductionReports]![cboOperatorFirstName]
Criteria
‘ to selecteither the date or date range
Between [Forms]![frmProductionReports]![txtStartDateOp]And [Forms]![frmProductionReports]![txtEndDateOp] Or [Forms]![frmProductionReports]![txtDateOp]
Form
Name: frmProductionReports
Name:cbo = cboOperatorFirstName (cbo linked totblOperator) (This part works and I can select the name)
‘ Sub inserted into the cboOperatorFirstName asEvent Procedure”After Update”
Private Sub cboOperatorFirstName_AfterUpdate()
Me.Filter ="[Queries]![qryUnionQryOperatorbyOp]![OperatorFirstName]=” &Me.cboOperatorFirstName
Me.FilterOn = True
Me.Requery
End Sub
Name:cmd = cmdRunQueryOp
Macro: On Click: Open Query: Query Name: qryUnionQryOperatorbyOp
Report
RptOperatorbyOp