I want to display a message in pay slip and the condition is if the employee's date of birth is on the next month of the salary process......will any one tell me how can i do this???????
suppose an employees birthday is on 12/12/55 and the salary is process in the month of November (11) then a message will display in the pay slip happy birthday in advance.
date:=Employee."Birth Date";
day := DATE2DMY(date,1);
month1 := DATE2DMY(date,2);
year1 := DATE2DMY(date,3);
IF (month1=MonthList) THEN
txt:='Wishing You Happy Birthday In Advance';
I wrote this but the problem i am facing that is after giving the month in the option june then in the report the message display for all employee.........
month list is a option field
and month1 is the extracted month from the dob of employee
i tried this on the employee on after get record ().on the time of running i give the employee no and choose the month=june in the request form....but the output remain same.....
i tried this on the employee on after get record ().on the time of running i give the employee no and choose the month=june in the request form....but the output remain same.....
ahhhhh ](*,) ](*,) ](*,)
It wont give you expected result in report..
If you keep on pressing next button in Employee Card..Message will be shown on the employee code whose b'day is on next month(on the form itself not on report)..
[b]txt := '';[/b]
date:=Employee."Birth Date";
day := DATE2DMY(date,1);
month1 := DATE2DMY(date,2);
year1 := DATE2DMY(date,3);
IF (month1=MonthList) THEN
txt:='Wishing You Happy Birthday In Advance';
Comments
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
this forum is not to provide solutions to your requirements..it is to solve the problems which you are facing while solving..
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
day := DATE2DMY(date,1);
month1 := DATE2DMY(date,2);
year1 := DATE2DMY(date,3);
IF (month1=MonthList) THEN
txt:='Wishing You Happy Birthday In Advance';
I wrote this but the problem i am facing that is after giving the month in the option june then in the report the message display for all employee.........
month list is a option field
and month1 is the extracted month from the dob of employee
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Where did you try this?
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
ahhhhh ](*,) ](*,) ](*,)
It wont give you expected result in report..
If you keep on pressing next button in Employee Card..Message will be shown on the employee code whose b'day is on next month(on the form itself not on report)..
So similar logic should be used in Report.
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Clear the Txt variable before testing.