I have an Access reporting database that pulls all of its data from a Remedy database. This part works fine. I create 2 tables. The first is a problem managment table, the second is a service request table (moves, adds, changes). In the Problem Management table we have 5 distinct product types that we need to do reporting on. (products are the types of trouble calls that we recieve; HARDWARE, SOFTWARE, Printer, Telecomm, and NETWORK). In the Service request table all I need is a count of the tickets closed with in a specific period of time. In the Problem Management table I need to know how many of each of the above mentioned 5 product types have been closed during the same time period as the Service Requests. I have written 5 individual querys for each of the Problem Management product types and 1 query for the Service Requests. All of the querys use the Count function to get the number of those type of problem/service calls that have been placed in the system. I call these querys subquerys. I have then created a "Master Query" that displays all of those counts in a single row. I use these numbers to create a pie chart that show the number of each of the product types of tickets that were closed during the specified period of time.
The problem:
If one of the query's returns a count of zero then all of the results in the "Master Query" return zero, and thus no chart.
I have tried to use an iif statement but have been unable to get it to return something if the count=zero, null, or empty.
I need some help. I am willing to forward the database to you for review. Thanks in advance.
The problem:
If one of the query's returns a count of zero then all of the results in the "Master Query" return zero, and thus no chart.
I have tried to use an iif statement but have been unable to get it to return something if the count=zero, null, or empty.
I need some help. I am willing to forward the database to you for review. Thanks in advance.