Tombstone0 Posted December 13, 2001 Posted December 13, 2001 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?
tlsparker Posted December 13, 2001 Posted December 13, 2001 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.
bobsmith Posted December 14, 2001 Posted December 14, 2001 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.
tlsparker Posted December 14, 2001 Posted December 14, 2001 "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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now