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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Comparing the month and year elements of two date fields

Status
Not open for further replies.

ChasK

Instructor
Sep 7, 2001
4
GB
I am trying to create a formula that compares the month and year (eg. Dec 2009) from two date fields. If the the two date fields contain the same month and year the formula will print the invoice amount.
Any suggestions?
Thank you in advance.
 
if date(year({table.date1}),month({table.date1}),1) =
date(year({table.date2}),month({table.date2}),1) then
{table.invoiceamt}

-LB
 
Thanks lbass. The formula worked perfectly. Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top