- Code: Select all Expand view
- oRs = CREATEOBJECT( "ADODB.Recordset" )
oRs:Open( "SELECT * FROM Contatti", cCns, adOpenForwardOnly,
adLockOptimistic )
USE ( cUpl + "\CONTATTI" )
WHILE !EOF()
oRs:AddNew()
COPYREC( oRs ) // Copy all values from DBF to recordset
oRs:Update()
SKIP
ENDDO
CLOSE
oRs:Close()
I don't know why but it only adds a certain number of records (from 1000 to 2000) on 38000.
It works fine if used as normal local application.
Any ideas?
Thanks in advance.
EMG