*Grid.valid >*... > lcRecSource = .recordsource > .recordsource = "" > GO .nLastValidRec in (lcRecSource) > .recordsource = lcRecSource && Error occurs here >*... >Absolutely there are more than one tables open and current workarea has the correct table (lcRecsource).