<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>In Delphi 3.02 this ALWAYS works, but only sometimes with Laz 1.0.6 for Win7 64bit w/ADS database:</div><div> with DBNavigator1.DataSource do if State in [dsEdit, dsInsert] then </div><div> </div><div> This can be fixed in Laz by adding a variable to the var section like so: myState : TDataSetState;</div><div> </div><div>And replacing the above with the following 2 lines:</div><div> </div><div>myState:=DBNavigator1.DataSource.State;</div><div>with DBNavigator1.DataSource do if myState in [dsEdit, dsInsert] then </div><div> </div><div>A. G.</div></div></body></html>