Hi there,
I have a table S511 with a date (day, month, year) and another table S510 with a monthly date (month, year)
When I work with table S511 (D,M,Y) I can use the following formula without any issues:
if (month({S510.SPTAG}) = month(currentdate)) AND (year({S510.SPTAG}) = year(currentdate))
then ...
else ...,
Now i got that new table S510 (only month and year)and my formula doesn't work anymore.
if (month({S511.SPMON}) = month(currentdate)) AND (year({S511.SPMON}) = year(currentdate))
then ...
else ...,
Something is wrong with my formula as I am getting an error saying "a date is required here".
What is wrong ? Is there maybe a problem with "currentdate" , since that includes Day, month and year ?? I have no clue.
Any ideas ?
Thanks in advance for your help
Jacky
I have a table S511 with a date (day, month, year) and another table S510 with a monthly date (month, year)
When I work with table S511 (D,M,Y) I can use the following formula without any issues:
if (month({S510.SPTAG}) = month(currentdate)) AND (year({S510.SPTAG}) = year(currentdate))
then ...
else ...,
Now i got that new table S510 (only month and year)and my formula doesn't work anymore.
if (month({S511.SPMON}) = month(currentdate)) AND (year({S511.SPMON}) = year(currentdate))
then ...
else ...,
Something is wrong with my formula as I am getting an error saying "a date is required here".
What is wrong ? Is there maybe a problem with "currentdate" , since that includes Day, month and year ?? I have no clue.
Any ideas ?
Thanks in advance for your help
Jacky