Hi, I have a continuous form. I am able to update the data if the continuous form has only one entry.
My problem is, when my query has multiple data, it only updates the 1st row of the continuous form. How can I update the other next entries?
Existing code below doesn't works.
Set dbforms = CurrentDb
strSQL = "SELECT * FROM MainData WHERE [Enterprise ID] = '" & Me.txtAttUser.Value & "'"
Set rstforms = dbforms.OpenRecordset(strSQL, dbOpenDynaset)
rstforms.MoveFirst
Do Until rstforms.EOF
rstforms.Edit
rstforms("[Employment Status]").Value = Me.txtAttStat.Value
rstforms.Update
rstforms.MoveNext
Loop
rstforms.Close dbforms.Close