Chris L Posted August 12, 2010 Posted August 12, 2010 Want to create a script to print a Profit & Loss statement for any given month without having to enter find mode and selecting the "from / thru" dates. i.e. If the month is August, find all records from 8/1...8/31 if it is indeed August and so on depending on what the current date is.
comment Posted August 12, 2010 Posted August 12, 2010 Try: Enter FInd Mode [] Set Field [ Datefield ; Let ( t = Get (CurrentDate) ; Date ( Month(t) ; 1 ; Year(t) ) & ".." & Date ( Month(t) + 1 ; 0 ; Year(t) ) ) ] Perform Find []
Chris L Posted August 12, 2010 Author Posted August 12, 2010 thanks for your help. I am not sure what "(t)" stands for in your script?
Chris L Posted August 12, 2010 Author Posted August 12, 2010 the calculation does not appear to be working...
bruceR Posted August 12, 2010 Posted August 12, 2010 (edited) T is just a place holder; a variable name. It is like saying let X = something. The calculation is correct. If it isn't working you're doing something different from the instructions provided. Edited August 12, 2010 by Guest
Vaughan Posted August 12, 2010 Posted August 12, 2010 That calc will only work in FMP 11... earlier versions do not support the calc engine in Find mode. I think the OP is using FMP 9.0
Vaughan Posted August 12, 2010 Posted August 12, 2010 Yes, you're absolutely right it will: I was thinking of the calc engine in the Enter Find Mode [ restore ] step, which is new in FMP 11. "We have normality. Repeat: we have normality. Anything you still can't cope with is therefore your own problem." -- HHGG
Recommended Posts
This topic is 5217 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