Okay, managed to find a previous copy of the Lazarus installer with fpc 2.2.1, Program working again,tried Jalal's sugestion using SQLQuery1.Active:=true, still l have the same error about inactive Dataset.:( Next step, removed the Reference in the Datasource property of the SQLQuery. It Works!