Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query - Combining IF statements (?) HELP 1

Status
Not open for further replies.

Dedicated

Programmer
Dec 26, 2003
38
US
Emp2: IIf(([Empl2Name]<>[EmployeeN]) Or ([CaseC]=-1) And ([Empl2Name]=True),[Empl2Name],Null)

Emp5: IIf(([EmployeeN]=True) And ([Empl2Name] Is Null) And ([CaseC]=-1),[EmployeeN],Null)

How do I combine these 2 "IF" statements. I need to pull a report on all employees from both Emp2 & Emp5.

 
IIf(([Empl2Name]<>[EmployeeN]) Or ([CaseC]=-1) And ([Empl2Name]=True), [Empl2Name], IIf(([EmployeeN]=True) And ([Empl2Name] Is Null) And ([CaseC]=-1),[EmployeeN],Null))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top