its done well but new i want to enter the data to this raw and its go to
last rew
You're not annoying me at all - I think we're having some difficulty
communicating, is all.
A few questions:
1. Why are you using VBA and recordsets to add records to your table?
A Bound Form does so with no code at all. I am sure you have a reason
but I do not know what it is. There may be a better way to do the task
that you want.
2. If you want to add data to the record currently selected on the
form, it is best to do so using the Form. Simply set the value of a
bound textbox on the form to the value that you want, and then give a
command like
DoCmd.GoToRecord acDataForm, Me.Name, acNewRecord
3. If you need to update a record using a recordset, and then move to
the new record in that recordset, then you need two Move steps:
Private Sub Form_Load()
Dim payment As DAO.Recordset
Set payment = CurrentDb.OpenRecordset("tblpayment", dbOpenDynaset) <do
something to find the record which you want to update - I do not know
what record that is>
Payment!fieldname = Me!controlname
' then update the record
payment.Update
' then move to the new record
payment.AddNew
end sub
Note that moving from record to record in the Recordset will do
ABSOLUTELY NOTHING on the form; the recordset and the form are
independent.