Code: Select all
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()
It works fine if used as normal local application.
Any ideas?
Thanks in advance.
EMG