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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query: HELP

Status
Not open for further replies.

Dedicated

Programmer
Dec 26, 2003
38
US
I would like to create a query were I can check to see if the 2nd part(tab 2) of the audit on my form has the same Employee name as the 1st tab and/or if the name is null but the audit was been done by the same employee on the 1st tab and the checkbox marked to reflect such.

I don't know how to write the query:

TotalCount: iif([Empl2Name(tab2)= EmployeeN(tab1),[TotalP],0) but how would I write the second part of the query?

I need an OR statement where I can say " OR if the [Empl2Name] is null and [CaseCcheck] is true,[TotalP],0)

As you can see this lady needs some help.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top