IF PEMSTATUS(ThisForm,"FormState",5) This.Enabled=.F. IF ThisForm.FormState > 0 This.Enabled=.T. ENDIF ENDIFFormstate is a property I use on the Form to determine whether it's being edited or not. Anyway, in one instance, the source is constantly being requeried during an edit. In the Refresh of that instance, I have
IF opgType.Value = 0 OR opgGroup.Value =0 This.Visible=.F. This.Parent.lblBenefitPlan.Visible=.F. ELSE This.Visible=.T. This.Parent.lblBenefitPlan.Visible=.T. ENDIF DODEFAULT()When the program hit's the DODEFAULT() after reverting (in which the source table has been requeried again and had no records) I get a record out of range error. Now, there are no table references in any of the code, at the class level and in the instance. And the error highlights the DODEFAULT() but gives no indication WHAT in the default class code is erroring.