Joe, try something like this:
if not m.logg_tmeof > m.logg_tmeon
do p_err_msg with 'log_hist.scx logg_tmeof > logg_tmeon'
if not _curobj = objnum(m.ap_time_of)
_CUROBJ = OBJNUM(m.ap_time_of)
endif
return .f.
endif
----------
This is code that is working in a lan environment. YOu could reset it my referencing another field. In this example, it resets to the current field. This is better because it gets the actual object number with a foxpro function.
Good coding.