BQuery1.SQL.Clear; IBQuery1.SQL.Add('SELECT * FROM LOGIN'); IBQuery1.Open; IBQuery1.Last; Count:= IBQuery1.RecordCount ;