Ok, hard to put into words, please have patience.
Background:
I have a report that displays in the following manner:
(ignore underscores, entered to help preserve formatting)
Salesperson______Sales_____Quota
Bob______________$500______$900
John___________$1,200_____$1000
Salesperson is pulled directly from the salesperson table, Sales and Quota are being displayed from Formulas (simple Select Case formula based on a parameter from the user), based on the Month desired.
The Salesperson data table is linked via an office number and salesperson number to a Sales Table and a Quota table. I had to play with the join to get the data from both tables to be returned.
The Sales table has a one record for each salesperson that actually HAS sales (if John had no sales, there would be no record).
The Quota table has one record for each salesperson (even if they have no quota). If John had no quota, there would be 0 (zero) in the quota file for John.
Problem:
When Crystal pulls the data, it looks like this:
Salesperson______Sales_____Quota
Bob______________$500______$900
John____________$1200_____$1000
Suzy____________$1500________$0
Sam____________ _____$500
Rick_____________$500________$0
Frank__________ _______$0
Jim______________$500______$900
Pete____________$1250________$0
Notice that even though Suzy and Pete have a ZERO quota, there is a zero returned (reflective of the record in the quota table). This is good,
Notice that Sam and Frank have a BLANK in the Sales column, reflective of there not being a record available. This is bad,
Is there anyway to get something to appear instead of BLANKS?
In my application, if someone has a quota, but no sales, the sales should be ZERO.
I have tried altering my Sales and Quota formulas with Default values, but, I am assuming that the Select Case will only work once the query has returned data (and not if there is no data there.
Any advice would be greatly appreciated, thanks in advance.
Jason
v10, propriatary record based DB via ODBC(DAO) link
Background:
I have a report that displays in the following manner:
(ignore underscores, entered to help preserve formatting)
Salesperson______Sales_____Quota
Bob______________$500______$900
John___________$1,200_____$1000
Salesperson is pulled directly from the salesperson table, Sales and Quota are being displayed from Formulas (simple Select Case formula based on a parameter from the user), based on the Month desired.
The Salesperson data table is linked via an office number and salesperson number to a Sales Table and a Quota table. I had to play with the join to get the data from both tables to be returned.
The Sales table has a one record for each salesperson that actually HAS sales (if John had no sales, there would be no record).
The Quota table has one record for each salesperson (even if they have no quota). If John had no quota, there would be 0 (zero) in the quota file for John.
Problem:
When Crystal pulls the data, it looks like this:
Salesperson______Sales_____Quota
Bob______________$500______$900
John____________$1200_____$1000
Suzy____________$1500________$0
Sam____________ _____$500
Rick_____________$500________$0
Frank__________ _______$0
Jim______________$500______$900
Pete____________$1250________$0
Notice that even though Suzy and Pete have a ZERO quota, there is a zero returned (reflective of the record in the quota table). This is good,
Notice that Sam and Frank have a BLANK in the Sales column, reflective of there not being a record available. This is bad,
Is there anyway to get something to appear instead of BLANKS?
In my application, if someone has a quota, but no sales, the sales should be ZERO.
I have tried altering my Sales and Quota formulas with Default values, but, I am assuming that the Select Case will only work once the query has returned data (and not if there is no data there.
Any advice would be greatly appreciated, thanks in advance.
Jason
v10, propriatary record based DB via ODBC(DAO) link