×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Sub-report

Sub-report

Sub-report

(OP)
Hi:

I am new to Crystal, so I apologize if this is a simple question.

I need to create a report that looks at customers who closed their accounts in the last 6 months. Of these people identified, I need to look at what their balances were 6 months prior to their closing date. I know I have to create a sub-report for this but do not know how. the primary report would have fields:

Account number Closing date Note balance( 6 months prior to closing)

One caveat would be that if the date 6 months ago fell on a weekend or holiday, I'd need to go to the last business day prior.

Any help would be appreciated.

RE: Sub-report

I don't think you need a subreport. You would use a selection formula like this:

{table.closingdate} in dateadd("m",-6,currentdate) to currentdate and
{table.accounttransactiondate} < dateadd("m",-6,{table.closingdate})

Then you would group on the account, and sort in descending order on the account transaction date, and place the balance field in the group header and suppress the detail.

Of course you didn't explain whether balance is a field or a calculation, or whether you have a transaction date field as I am assuming.

-LB

RE: Sub-report

(OP)
The balance is a field, but the tranaction date is not a field. the current date would be a field called effective date, so I think the account transaction date transaction would be effective date as well. but how would that work based on what you mentioned.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close