Append From sin duplicar
Publicado por Alejandro (30 intervenciones) el 24/03/2016 02:16:52
Quiero hacer un append from pero sin que agregue los registros ya existentes. ¿Es posible?
Hice este código pero es mas lento que hacer un append from
Hice este código pero es mas lento que hacer un append from
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Select 2
Use Destino
Select 1
Use Origen
aRow := Array(FCount(),2)
For i:=1 To FCount()
aRow[i.1] := Field(i)
Next i
Do While !Eof()
Select 1
For :=i To Len(aRow)
aRow[i,2] := &(Field(i))
Next i
nFactura = Factura
nDocumento = Documento
Select 2
Locate For Factura = nFactura .And. Documento = nDocumento
If !Found()
Append Blank
For i:=1 to Len(aRow)
Replace &(aRow[i,1]) With aRow[i,2]
Next i
EndIf
Select 1
Skip
EndDo
Valora esta pregunta


0