Topic: SQL Error

Hello Friends.. i am using this quey in Report Designer but not working.. please correct query  ,,

Memo10.Text := SQLExecute('Select sum((a.CAmount) - (a.PAmount)) from Credit a,CVeh b,CCompany c where b.id = a.id_CVeh and c.id = a.id_CCompany and b.id = <ComboBox2> and c.id = <ComboBox1>');

Re: SQL Error

need help...

Re: SQL Error

A little search on this forum ( up right of this very page... 'Search' ....)

And I would try this:

Memo10.Text := SQLExecute('Select sum((a.CAmount) - (a.PAmount)) from Credit a,CVeh b,CCompany c where b.id = a.id_CVeh and c.id = a.id_CCompany and b.id = {ComboBox2} and c.id = {ComboBox1}');


Source: http://myvisualdatabase.com/forum/view … 6517#p6517