Hi!
I am trying to open two tables and then update on of them assigning the values from the first table
Here is the code use
But it doesn't work, giving me the error message "NO CURRENT RECORD"
Dim rst As DAO.Recordset
Dim rst1 As DAO.Recordset
Set rst = CurrentDb.OpenRecordset("Configuration"
Set rst1 = CurrentDb.OpenRecordset("ConfigurationHistory"
rst1.Edit
rst1!ModelID = rst!ModelID
rst1!Model = rst!Model
rst1!DateObsolete = Now()
rst1!UnitPrice = rst!UnitPrice
rst1!RecoveryCharges = rst!RecoveryCharges
rst1!RecoveryChargesUSA = rst!RecoveryChargesUSA
rst1.Update
Please help
I am trying to open two tables and then update on of them assigning the values from the first table
Here is the code use
But it doesn't work, giving me the error message "NO CURRENT RECORD"
Dim rst As DAO.Recordset
Dim rst1 As DAO.Recordset
Set rst = CurrentDb.OpenRecordset("Configuration"
Set rst1 = CurrentDb.OpenRecordset("ConfigurationHistory"
rst1.Edit
rst1!ModelID = rst!ModelID
rst1!Model = rst!Model
rst1!DateObsolete = Now()
rst1!UnitPrice = rst!UnitPrice
rst1!RecoveryCharges = rst!RecoveryCharges
rst1!RecoveryChargesUSA = rst!RecoveryChargesUSA
rst1.Update
Please help