How make "strsql" string get value of field in the current recordset line.
I tryed this:
I tryed this:
Code:
Dim Rst As DAO.Recordset
Set Rst = CurrentDb.OpenRecordset("ConsultaIPE")
Dim Link As Variant
With Rst
.MoveFirst
While Not .EOF
Dim strsql As String
...
strsql = "INSERT INTO CONSULTAIPE2 (link, documento) VALUES ([red]!Link , !documento[/red]);"
DoCmd.RunSQL strsql
...
.MoveNext
Wend
End With