* dataenvironment.Error method. >LPARAMETERS nError, cMethod, nLine > >LOCAL i, aCursors[1], cLastAlias >AMEMBERS(aCursors, thisForm.DataEnvironment, 2) > >nUsed = 0 > >FOR i = 1 to ALEN(aCursors) > WITH EVAL("thisForm.DataEnvironment." + aCursors[i]) > IF lowe(.BaseClass) != "cursor" > loop > endif > if used(.Alias) > nUsed = m.nUsed + 1 > endif > ENDWITH > endfor >* nUsed==0 here always. >Looks like worst-case scenario, or is it the very first table which gives you the error? One thing I wanted to try with this is to hide the 7th table and see if Cursor7 would be the one giving the error. Do this on something that otherwise works, so I'd know it's regularly detecting the introduced error.