Query Question with Zero Value

Princessboko

Board Regular
Joined
Nov 3, 2002
Messages
73
I have a database that I track customer complaints for each department and facility. At the end of each month each department gets a report that shows the date, type and number of complaints.

Now I need to write a query that will let me print a report for each department that DID NOT have a complaint for the month.

In an unbound box would it be:
If [complainttype]=" " then [location] ???

Feedback would be helpful.
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Try

IIf ([complainttype] Is Null,[location],[ComplaintType])

Means:

IIf ([complainttype] Is Null,TRUE,FALSE)


If you want to put a text string use quotes instead of a field, In Access it is IIF not IF
 
Upvote 0

Forum statistics

Threads
1,221,709
Messages
6,161,442
Members
451,705
Latest member
Priti_190

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top