Thanks, however the current filter is done by the form, not by any filter criteria i have set so the Me.textboxname would be whatever field the user is clicked in. Not sure if access can use the active field as a variable.
Something like:
CurrentDb.Execute "Update currenttable set fieldname=" & Me.OnFocus & "Where fieldname=" & criteria
the vba code to move to the next record would be something like
Code:
Private Sub cmdUpdateFieldValue_Click()
Dim rst As Recordset
On Error GoTo Err_cmdSetAll_Click
Set rst = Me.RecordsetClone
With rst
.MoveFirst
Do
.Edit
CurrentDb.Execute "Update currenttable set fieldname=" & Me.OnFocus & "Where fieldname=" & criteria
.Movenext
Loop Until .EOF
End With
Exit_cmdSetAll_Click:
Exit Sub
Err_cmdSetAll_Click:
MsgBox Err.Description
Resume Exit_cmdSetAll_Click
End Sub