REPLACE dateupdate WITH DATE() IIF(TABLEUPDATE(.T.),TABLEREVERT(.T.))???
REPLACE dateupdate with Date() IF NOT TableUpdate() TableRevert() ENDIFOf course you should be using all of the arguments for TableUpdate and TableRevert to prevent unexpected results (see the help file on those functions)