JTSmith Posted July 10, 2012 Posted July 10, 2012 I have 2 fields, a Move In Date and Move Out Date. I need a report/layout that is a "Receipt", that takes those two dates (example January 1 and March 15) and then puts them on the receipt as: January 1st, 2012 January 2nd, 2012 January 3rd, 2012 etc etc Until it gets to March 15. Each line has a rental rate, and I need to put a total on there, but I can handle all that. It's the daily breakout that i'm struggling with. Any advice? Thank you!
comment Posted July 10, 2012 Posted July 10, 2012 A repeating calculation field could do that. Other options are a recursive custom function (requires the Advanced version to install) or a looping script to write it out, either to a field (return-separated) or to individual records in a related table.
Agnes Riley Posted July 10, 2012 Posted July 10, 2012 You could also use the List function if they are in a separate table. If not, there's a function on briandunning.com that can list out data from the same field.
JTSmith Posted July 12, 2012 Author Posted July 12, 2012 Try this http://www.briandunning.com/cf/231 When I do this: Let ( [ dateMin = GetAsDate ( Min ( GetAsDate ( Date Begin ); GetAsDate ( Date End ) ) ); dateMax = GetAsDate ( Max ( GetAsDate ( Date Begin ); GetAsDate ( Date End ) ) ); dateList = Case ( not IsValid ( dateMin ) ; "?"; not IsValid ( dateMax ) ; "?"; dateMin = dateMax ; dateMax & ¶; dateMin & ¶ & DateValues ( dateMin + 1 ; dateMax ) ); result = dateList ]; result ) It highlights a section and says "the function cannot be found." The highlighted part is this: "lues (dat" It's on the line that says: dateMin & ¶ & DateValues ( dateMin + 1 ; dateMax ) If it matters, I'm using FM12.
comment Posted July 12, 2012 Posted July 12, 2012 Other options are a recursive custom function (requires the Advanced version to install)
JTSmith Posted July 12, 2012 Author Posted July 12, 2012 Ok wasn't 100% sure what a recursive function was... dang. Thanks for the help.
eos Posted July 12, 2012 Posted July 12, 2012 Ok wasn't 100% sure what a recursive function was... dang. Thanks for the help. If you post your file, I guess some helpful soul would be willing to input that Custom Function for you. (You can use CFs without Advanced, just not edit them.)
Recommended Posts
This topic is 4516 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