Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Ummmmm.
Sun, Dec 9 2018 10:42 PMPermanent Link

Ian Branch

Avatar

Hi Team,
   No matter how many records are for this query to return, TEDBQuery1.RecCount always gives 1. Frown


{sql}
select sum("QtyUsed") as QtyUsed, sum("QtyReq") as QtyReq, sum("LineTotalSell") as LineTotalSell from Lineitems
where JobNo=:JobNo
{sql}

   I have done the following for now..
{sql}
select sum("QtyUsed") as QtyUsed, sum("QtyReq") as QtyReq, sum("LineTotalSell") as LineTotalSell, count("JobNo") as
RecordCount from Lineitems
where JobNo=:JobNo
{sql}

   But why aren't I getting an accurate RecCount in the first instance?

Regards,
Ian
Mon, Dec 10 2018 2:35 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Ian


Firstly what is RecCount?

Secondly you will only ever get 1 row from that query - you're telling it to add everything up and just give you the totals.

Roy Lambert
Mon, Dec 10 2018 3:34 AMPermanent Link

Ian Branch

Avatar

Roy Lambert wrote:

> Ian
>
>
> Firstly what is RecCount?
>
> Secondly you will only ever get 1 row from that query - you're telling it to add everything up and just give you the
> totals.
>
> Roy Lambert

Ahhhhhhh!!!!  Well colour me Red.  Of course.

I will just slink away now....

Tks Roy.
Image