ltEnterDatetimeEmployee = {^2006/09/26 08:25:00}
lcOfficalHourToEnter = "08:30:00"
IF RIGHT(TTOC(ltEnterDatetimeEmployee,1),6) > CHRTRAN(lcOfficalHourToEnter, ":", "")
? "Late ..."
ENDIF
>I have this two variables:
>
>ltEnterDatetimeEmployee = 29/09/2006 08:45:00 (data extracted from a datetime field)
>
>lcOfficalHourToEnter= "08:30:00" (data extracted from a char field)
>
>I need to determine if an employee is late, comparing both expression..
>
>
>Carlos Burgos
--sb--