smuthcrmnl777
Technical User
I have a form that has a button with a command to open a report. The WHERE condition of the OPENREPORT is where I am having some problem.
I have two different fields in the supporting query that I need to set the condition. The two fields are Dept and Group.
I need to retrieve records containing 43 and 44 for Dept
I need to retrieve records containing Wire Draw, Chem Proc, MES, PKG, and Misc for Group.
I tried using AND instead of OR this and I get an error saying I have duplicate fields.
What should do?
I have two different fields in the supporting query that I need to set the condition. The two fields are Dept and Group.
I need to retrieve records containing 43 and 44 for Dept
I need to retrieve records containing Wire Draw, Chem Proc, MES, PKG, and Misc for Group.
Code:
In the WHERE condtion of the OPENREPORT I have
"[Dept] = 43 or [Dept] = 44 or [Group] = 'Wire Draw' or [Group] = 'Chem Proc' or [Group] = 'MES' or [Group] = 'PKG' or [Group] = 'Misc'"
I tried using AND instead of OR this and I get an error saying I have duplicate fields.
What should do?