When I edit a recordset, it will be at the first record of the database instead of the selected recordset, selected by IndexNumber.
Code:
Dim Db As Database
Dim Rs As Recordset
Set Db = CurrentDb()
Set Rs = Db.OpenRecordset("select Offer, EstimatedPrice From Investmentplanning order by IndexNumber;")
With Rs
.Edit
!Offer = Me.NewOffer
!EstimatedPrice = Me.NewEstimatedPrice
.Update
Rs.Close
Set Rs = Nothing
What do I do wrong ?
Code:
Dim Db As Database
Dim Rs As Recordset
Set Db = CurrentDb()
Set Rs = Db.OpenRecordset("select Offer, EstimatedPrice From Investmentplanning order by IndexNumber;")
With Rs
.Edit
!Offer = Me.NewOffer
!EstimatedPrice = Me.NewEstimatedPrice
.Update
Rs.Close
Set Rs = Nothing
What do I do wrong ?