PLEASE HELP ME I DON´T KNOW WHAT IS THE MISTAKE?
WhileReadingRecords;
dateVar Birth :={Empleados.FechaNacimiento};// Replace this with your field for Date Of Birth
DateVar Ann := CurrentDate; // Replace this with CurrentDate to get their age as of the time of the report
//or the date field of an event to get their age as of the time of that event.
if (Month(Ann) * 100) + Day (Ann) >=(Month(Birth) *100) + Day (Birth)
then Year (Ann) - Year(Birth)
else Year (Ann) - Year(Birth) -1
WHEN READS THE DATE EMPLEADOS.FECHANACIMIENTO THE PROGRAM TELL ME THAT HERE NEEDS A DATE..BUT IS STRANGE BECAUSE THIS FIELDS WAS DECLARATED AS A DATE FIELD..PLEASE HELP ME I DON´T KNOW WHAT TO DO.
WhileReadingRecords;
dateVar Birth :={Empleados.FechaNacimiento};// Replace this with your field for Date Of Birth
DateVar Ann := CurrentDate; // Replace this with CurrentDate to get their age as of the time of the report
//or the date field of an event to get their age as of the time of that event.
if (Month(Ann) * 100) + Day (Ann) >=(Month(Birth) *100) + Day (Birth)
then Year (Ann) - Year(Birth)
else Year (Ann) - Year(Birth) -1
WHEN READS THE DATE EMPLEADOS.FECHANACIMIENTO THE PROGRAM TELL ME THAT HERE NEEDS A DATE..BUT IS STRANGE BECAUSE THIS FIELDS WAS DECLARATED AS A DATE FIELD..PLEASE HELP ME I DON´T KNOW WHAT TO DO.