Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old March 18th, 2005, 10:56 AM
samcneal samcneal is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 75 samcneal User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 h 26 m 2 sec
Reputation Power: 4
Crystal Report 8.5

Anyone familiar with Crystal Reports 8.5?

If so, I need some expert programming assistance.

I am performing a sum of loan amount for group loanrecord.

I am doing a distinct count of the loan records and I get that correct value
but when I sum the loan amount for those loan records, the value is greater than
it should be. I believe it is summing all the duplicate loan records instead of the distinct record.

So I thought to create a formula, like this:

//Sum ({HQBusinnessChannelbyState;1.totalloanamount}, {HQBusinnessChannelbyState;1.loanid},

Local NumberVar i := 0;
Local NumberVar j := 0;

While i = DistinctCount ({HQBusinnessChannelbyState;1.loanid}) do

( If j = 0 Then

j = Sum ({HQBusinnessChannelbyState;1.totalloanamount},{HQ BusinnessChannelbyState;1.loanid});

i := i + 1
);
j

I was thinking that this would only grab those distinct loan records to perform the sum but I'm getting a 0 value now.

Any suggestions?

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Crystal Report 8.5


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT