![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am building a application for the purposes of tracking field sales personnel. As a result I am having two problems. Firstly I need to make the performance reports alternate between whether the member of staff is male or female, i.e. he sold or she sold Assuming a table called 'member' with a field called 'gender', you could add |
|
Also I need a report to print off the four months in which each member of staff achieved the highest sales. In the newer versions of Fox, you could specify the 'top' (isn't that the |
|
Any help would be most appreciated. Thanks Boulent -- |
#3
| |||
| |||
|
|
iif(member.gender = 'M', 'he', 'she') |
|
Also I need a report to print off the four months in which each member of staff achieved the highest sales. In the newer versions of Fox, you could specify the 'top' (isn't that the keyword?) four. But in Fox 3, I would go with a cursor to give you the totals and orders, then scan the cursor, deleting all but 4 records for each member. |
#4
| |||
| |||
|
|
Assuming a table called 'member' with a field called 'gender', you could add a function to a field in your report like this: iif(member.gender = 'M', 'he', 'she') I am looking at the field settings on the report screen and I am currently unable to see where to include the if statement. |
|
Also I need a report to print off the four months in which each member of staff achieved the highest sales. In the newer versions of Fox, you could specify the 'top' (isn't that the keyword?) four. But in Fox 3, I would go with a cursor to give you the totals and orders, then scan the cursor, deleting all but 4 records for each member. Its not a case of records, its more a case of twelve fields (one for each month) and me wanting to display the four months in which highest sales were achieved without accessing specific details, such as totals and orders regarding those sales |
|
Thanks Boulent |
![]() |
| Thread Tools | |
| Display Modes | |
| |