Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Previous Month 1

Status
Not open for further replies.

yeltom

Programmer
Sep 17, 2001
62
US
Hello CR Users. I am trying to create a profit and loss type of document where I have the current month figures as well as the previous month's values. How can I get the previous month's values?
 
Hi

Have a look at the "LastFullMonth" function.

Nuffsaid.
 
Alias the table with the data as being the previous month and in the record selection table if there is a table field called MONTH

then

{table.month} = month({?date}) and
{table_previous.month} = month({?date}) - 1

Where {?date} is an inputted date parameter and you would link to the rest of the tables in the same manner

Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top