IT SOLUTIONS
Your full service technology partner! 
-Collapse +Expand
Paradox
Search Paradox Group:

Advanced
-Collapse +Expand Paradox To/From
To/FromCODEGuides
-Collapse +Expand Paradox Store
PRESTWOODSTORE

Prestwood eMagazine

May Edition
Subscribe now! It's Free!
Enter your email:

   ► MB LobbyCorel Paradox / ObjectPAL Coding BoardParadox Reports Topic   Print This     

Paradox 11 decimals not showing up calc rpt field

Paradox 11 decimals not showing up calc rpt field in Paradox Reports topic (part of our Corel Paradox / ObjectPAL Coding group).

Quick Search: Paradox   decimals   showing   Paradox 11   Paradox 11 decimals   not showing   up calc   rpt field  
owensct
Kaneohe, HI USA

Hi All,

Hoping someone can help me with an issue I am having with a report I wrote for one of my departments.

 

The report is an audit report to verify that all that all the records for players in a charity golf tournament are being pulled correctly by the application before the user moves onto the next step.

 

The teams consist of 3 individuals each, the report prints a list of all players in each team sorted by the sponsoring company or individual.

 

At the bottom of the report I added a field to do a count on the player name field so the user can see the number of records pulled, which also happens to be the number of players as the table the report is based on only contains players. The count is Count(Master.PRT_NAME). For the test I am doing it returns a total of 148 records, which is correct.

 

The next field I created lists the number of teams. This allows the end user to determine if all the teams are being pulled correctly. I created a calculated field which is

Count([MASTER.PRT_NAME])/3 The number format for the field is set to Windows# ie xx.xx.

 

If results of this calculated field is an even number then youre golden, if not then youre missing player(s) from one of more teams and need to go back and check your data entry.

 

When I run the report against my test table it returns the correct number of records, (players) 148, but the calculated field for the number of teams shows up as 49.00 which is incorrect as 148/3 equals 49.33333, I only need a two digit decimal as any uneven number is sufficient to show there are missing players.

 

I have tried the various different available number formats for the field and none of them show the correct value.

 

Can someone give me some insight into what I am doing wrong/missing?

 

ThanksSmile

 

Gordon

 Posted 8 years ago (Thread Starter)
Comment Quote
About owensct -Collapse +Expand
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.

Post ID #14854, 1 reply
Thread Started 5/11/2012 2:34:33 PM
View Counter=2883
Last Reply Posted 7/6/2012 8:34:50 AM)
Location=Kaneohe, HI USA 
Joined=11 years ago   MB Posts=7  
Most Recent Post
Bradley Wood
Ludlow, NB, CANADA

Gordon,

The problem is that the count() method casts its results as a smallint data type.

Therefore, make the following small change to your calculated field to get the results you desire: "number(count([MASTER.PRT_NAME]))/3"

Also, ensure that the field is formatted as "Windows #" or some other number format other than "integer".

 Posted 8 years ago
Comment Quote
About Bradley Wood -Collapse +Expand
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.

Post ID #14883 (Level 2) and Parent is 14854
Reply Posted 7/6/2012 8:28:04 AM
Location=Ludlow, NB, CANADA  
Joined=19 years ago   MB Posts=12  

Revive Thread!

Add a comment to revive this old thread and make this archived thread more useful.

Write a Comment...
Full Editor
...
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.


Anonymous Post (text-only, no HTML):

Enter your name and security key.

Your Name:
Security key = P1311A1
Enter key:
Icon: A Post    Thread    Idea    Important!    Cool    Sad    No    Yes    Includes a Link...   
Thread #14854 Counter
2883
Since 5/11/2012
Go ahead!   Use Us! Call: 916-726-5675  Or visit our new sales site: 
www.prestwood.com


©1995-2020 Prestwood IT Solutions.   [Security & Privacy]