title: Msacces stored query and delphi using ado error
body: <p>I have prepared this query in access and it is working ok.</p>
  
  <p><code>SELECT Kod, Unvan, CepTel, Telefon, (SELECT Sum(Borc.Tutar)  from borc
  where carikod=kod) AS BorcTutar, (SELECT Sum(Alacak.Tutar) from Alacak
  where carikod=kod) AS AlacakTutar
  FROM cari;</code></p>
  
  <p>But when want to use query in delphi i have to use serverside corsorlocation and static cursor. </p>
  
  <p>Then delphi throw an exception and says "e-fail" , "invalid argument" and diffrent kind of messages when i change the cursor locations and types..</p>
  
  <p>It is working wit clientside cursor but return 0 for sum()..</p>
  
  <p>How to use correctly this query...</p>