I have a form (form1) .
I have a report (report1), and this report has 4 fields:
- ID
- NameEmp
- dataHiring
- Salary
I need to filter this report based on user choices from a combo box (named cboname) in form1.
How to set a filter for report1 that contains only NameEmp based on cboname?
I already tried to use this VBA code:
DoCmd.Setfilter Where condtion :- [NameEmp]= forms!Form1 [cboname]
Event: On Open_Report1
thanks a lot.