Hi Niket,
>Can anyboby let me know how the line "THISFORM.grdMain.RecordSource = THISFORM.grdMain.RecordSource" is playing role to encounter the error ?????? Can i implement it is any other way???????
When the grid displays data or receives the focus, it switches the current work area to its record source. You can work around this by issueing
SELECT crsTripLegSrch
after you assigned the record source.
--
Christof
--
Christof