Hi All,
I have an "Insert Into" statement that cycles through while statement. The db object is correct, the Insert Into syntax is correct, and the recordset object is set correct. The code functions correctly except that it does not add the record to the target table.
db.Execute " Insert Into tblLease (UnitId, LeaseNumber, LeaseName, OpId, PartFact, Jurisdiction, Region) Values ('" & _
rst.Fields![UnitId] & "','" & rst.Fields![LeaseNumber] & "','" & rst.Fields![LeaseName] & "','" & rst.Fields![OpID] & "','" & _
rst.Fields![PartFact] & "','" & rst.Fields![Jurisdiction] & "','" & rst.Fields![Region] & "');"
Any ideas why this code does not add the record to the table?
Thanks,
Jack D
I have an "Insert Into" statement that cycles through while statement. The db object is correct, the Insert Into syntax is correct, and the recordset object is set correct. The code functions correctly except that it does not add the record to the target table.
db.Execute " Insert Into tblLease (UnitId, LeaseNumber, LeaseName, OpId, PartFact, Jurisdiction, Region) Values ('" & _
rst.Fields![UnitId] & "','" & rst.Fields![LeaseNumber] & "','" & rst.Fields![LeaseName] & "','" & rst.Fields![OpID] & "','" & _
rst.Fields![PartFact] & "','" & rst.Fields![Jurisdiction] & "','" & rst.Fields![Region] & "');"
Any ideas why this code does not add the record to the table?
Thanks,
Jack D