Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

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.

Posted

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 []

Posted

thanks for your help. I am not sure what "(t)" stands for in your script?

Posted (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 by Guest
Posted

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

Posted

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

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 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.