private void processCounting()
{
int nomor, no, angka, NC3, NC4, NC5, NC6, NC7, NC8, NC9,
NC10, NC11, NC12, NC13, NC14, NC15, NC16, NC17, NC18,
NC19, NC20, NC21;
while select pibCount
group by NoBuktiPIB, KodeBarang, RecId
where pibCount.createdBy == CurUserId()
{
//JUMLAH BARANG
select count(KodeBarang) from pibCount2
where pibCount2.NoBuktiPIB == pibCount.NoBuktiPIB
&& pibCount2.RecId == pibCount.RecId
&& pibCount2.createdBy == CurUserId();
nomor = any2int(pibCount2.KodeBarang);
//UPDATE JUMLAH BARANG
ttsBegin;
select forUpdate pibUpdate
where pibUpdate.createdBy == curUserId()
&& pibUpdate.NoBuktiPIB == pibCount.NoBuktiPIB
&& pibUpdate.KodeBarang == pibCount.KodeBarang
&& pibUpdate.RecId == pibCount.RecId;
EU_TBL_KITEPIBtmp.clear();
EU_TBL_KITEPIBtmp.JumlahBarang = nomor;
EU_TBL_KITEPIBtmp.doUpdate();
ttsCommit;
What happen with this record never been selected ?

this the variable code :
EU_TBL_KITEPIBtmp EU_TBL_KITEPIBtmp,EU_TBL_KITEPIBtmp2,EU_TBL_KITEPIBtmp3,EU_TBL_KITEPIBtmp4,
pibCount, pibUpdate, pibCount2, pibCount3, pibCount4, pibCount5, pibCount6,
pibCount7, pibCount8, pibCount9, pibCount10, pibCount11, pibCount12,
pibCount13, pibCount14, pibCount15, pibCount16, pibCount17, pibCount18,
pibCount19, pibCount20, pibCount21, pibUpdate3, pibUpdate4, pibUpdate5,
pibUpdate6, pibUpdate7, pibUpdate8, pibUpdate9, pibUpdate10, pibUpdate11,
pibUpdate12, pibUpdate13, pibUpdate14, pibUpdate15, pibUpdate16, pibUpdate17,
pibUpdate18, pibUpdate19, pibUpdate20, pibUpdate21;

in my debbuger its already selected, already add clear buffer. what i missed ?