Osvaldo Ramirez

Dear Boris Borzic
The statement dint work, because my client has a MySQL 4.0 server
and this version dont accept subquerys, So he said, that will try to
update the MySQL.
Anyway I make this code, and I would like to know your point of view.
Thanks a lot
Osvaldo Ramirez
P.S. Please, tell me what news are in the SQLExpress++
Code:
cSQL := "select tra_id,tra_fecha,tra_status,lab_id,tra_rep from transfe where tra_fecha >= '"+dtos(dFecha1)+"' and tra_fecha <= '"+dtos(dFecha2)+"' order by tra_id"
oTransfer := SQLDataSet():new(cSQL,oConnection)
if oTransfer:reccount() > 0
do while ! oTransfer:eof()
cIn += alltrim(str(oTransfer:fieldget("tra_id")))
oTransfer:skip()
cIn += iif( ! oTransfer:eof() , "," , "" )
enddo
cSQL := "select * from sub_tra where tra_id in ("+cIn+") order by tra_id,art_barcod"
oDetails := SQLDataSet():new(cSQL,oConnection)
if ( nRecnos := oDetails:reccount() ) >= 1
oDetails:SetRelation( oTransfer )
.... my report