I cannot get the update to work. I have tried several different entries but I cannot get the table to be updated to fld. What am I doing wrong?<br>
<br>
Thanks<br>
<br>
Dim db As DATABASE, rs As Recordset, fld As String, strsql As String<br>
Set db = CurrentDb<br>
Set rs = db.OpenRecordset("ESP_NAMES"<br>
With rs<br>
rs.MoveLast<br>
rs.MoveFirst<br>
Do Until .EOF<br>
fld = rs.Fields("TO_ESP_TICKER_ID"<br>
DoCmd.RunSQL "update esp_name set esp_name = " & fld & " ; "
<br>
Thanks<br>
<br>
Dim db As DATABASE, rs As Recordset, fld As String, strsql As String<br>
Set db = CurrentDb<br>
Set rs = db.OpenRecordset("ESP_NAMES"<br>
With rs<br>
rs.MoveLast<br>
rs.MoveFirst<br>
Do Until .EOF<br>
fld = rs.Fields("TO_ESP_TICKER_ID"<br>
DoCmd.RunSQL "update esp_name set esp_name = " & fld & " ; "