Jump to content

This topic is 8487 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I need to create a summery which displays the total amount a particular office in my company has billed another company in a particular time frame. So far I've figured out how to sum the total amount based on company number and office through a relationship concatinating the two fields. My question is how do I limit the total by a time frame?

Posted

Create a text field called "marker". Enter the date ranges in global fields (gFirstDate, gLastDate). Create a script that includes:

Find All

Set Field (Marker="")This step clears the marker field.

Set the date search field to (gFirstDate&"..."&gLastDate)

Perform find.

Set Field (Marker="x"). This script marks all the records you want to include in the total with an x.

Now, append the marker field to the concatenated field you described, base the relationship on this new field, and you should get your total for the date range.

Posted

You can not use SetField as this will only effect the current record not the found set. You will need to use Replace or use a loop to set the field and move to the next record and set the field.

Posted

"You can not use SetField as this will only effect the current record not the found set. You will need to use Replace or use a loop to set the field and move to the next record and set the field."

Ah, yes, Replace is the correct command in this case.

Tom

This topic is 8487 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.