> FOR m.nFld = 1 TO FCOUNT() && <----- is where it returns 2 and I know the table only has 1 field > IF TYPE(FIELD(m.nFld)) = "G" &&skip for General fields > LOOP > ENDIF > IF OLDVAL(FIELD(m.nFld)) # CURVAL(FIELD(m.nFld)) > m.lHadMessage = .T. > IF MESSAGEBOX(E_DIRTYREC_LOC,4+48) = MSGBOX_YES > >Beth, ALWAYS add alias in the functions where you can. No matter how you are sure you are in the right alias, you never now. Grid has focus and you are dead :-)
FOR m.nFld = 1 TO FCOUNT([CAalias]) && <----- is where it returns 2 and I know the table only has 1 field IF TYPE(FIELD(m.nFld,[CAalias])) = "G" &&skip for General fields LOOP ENDIF IF OLDVAL(FIELD(m.nFld,[CAalias]),[CAalias]) # CURVAL(FIELD(m.nFld,[CAalias]),[CAalias]) m.lHadMessage = .T. IF MESSAGEBOX(E_DIRTYREC_LOC,4+48) = MSGBOX_YES