mPersonalData = CurPatientSummary.PersonData mPastHist = CurPatientSummary.PastHist mAllergies = CurPatientSummary.Allergies IF !empty(mPersonalData) mUpdatePatSummary = .t. thisform.cmdEnterData.Enabled = .f. ELSE thisform.cmdEnterData.Enabled = .t. ENDIF IF !empty(mPastHist) mUpdatePatSummary = .t. thisform.cmdEnterData.Enabled = .f. ELSE thisform.cmdEnterData.Enabled = .t. ENDIF IF !empty(mAllergies) mUpdatePatSummary = .t. thisform.cmdEnterData.Enabled = .f. ELSE thisform.cmdEnterData.Enabled = .t. ENDIFI have tried this with NOT ISNULL() adn NOT ISBLANK() functions, but does not seem to work, in that the first time a blank field is encountered it works, but the second time around for a new record, the behaviour is not as what is expected.