FUNCTION frmdataform.isenabled LPARAMETERS cMethod, cWorkArea * Was taken from UT suggestion to turn off items when we are adding records. if proper(m.cMethod) + "," $ 'Next,Last,Prior,First,Find,List,Delete,New,Report,' * The statemanager is checking a navigational button state. * But wait, do we have a New record? if thisform.cmDataManager.IsNew('Catcode') * Yes we have a new record, so return False which will disable the "state". return .F. endif * But wait, do we have a Changed record? Check for it with lChange. if thisform.lChanged * Yes we have a changed record, so return False which will disable the "state". return .F. endif endif * If we are here, we haven't got a New record in the cursor. return dodefault(cMethod, cWorkarea)Thanks,