×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

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

Record Selection Formula Help

Record Selection Formula Help

Record Selection Formula Help

(OP)
Hello, I am trying to edit a sub report for a report I am working on. The purpose of the sub report is to display a tenant's monthly charges effective on the date I specify. The date that I specify could have charges that are labeled as "future" or "current". Therefore I am trying to sort the sub report so that if the future rate applies in this case it does not print the current rate otherwise print the current rate. Below is what I have tried to do and currently if the future rate exists it prints it but then if it does not it always prints the current rate. I am not sure how to edit this appropriately.

This is this sub report as a reference.



This is the result of the sub report.

In this picture the "current" rate is $4,093 and the "future" rate is $4,175



This is the formula I am currently trying to use for sorting. I have highlighted what the issue portion of the formula is.

{PML_LEASE__LEASE_RECURRING_CHARGE.Frequency} <> "Annually" and
{PML_LEASE__LEASE_RECURRING_CHARGE.Revision_Num} = {?Pm-PML_LEASE__LEASE.Revision_Num} and
{PML_LEASE__LEASE_RECURRING_CHARGE.Lease} = {?Pm-PML_LEASE__LEASE.Lease} and
(If ({PML_LEASE__LEASE_RECURRING_CHG_LOG.Status} = "Future" and
{PML_LEASE__LEASE_RECURRING_CHG_LOG.Effective_Date} = {?Start Date for New Rates}) Then
{PML_LEASE__LEASE_RECURRING_CHG_LOG.Status} in ["Future"] Else
{PML_LEASE__LEASE_RECURRING_CHG_LOG.Status} in ["Current"])


Thank you for any help.

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