I'm trying to update two fields (NewJF and NewDe) of all records in a subform based on two comboboxes (cmbSenior and cmbDe)
Works fine with one field but I cant seem to get the syntax right for the second one.
Works fine with one field but I cant seem to get the syntax right for the second one.
Code:
Private Sub UPdate_Click()
Dim rst As DAO.Recordset
Set rst = Me.fSubClassification.Form.RecordsetClone
rst.MoveFirst
Do While Not (rst.BOF Or rst.EOF)
rst.Edit
rst![NewJF] = Me![cmbSenior],[NewDe] = Me.[cmbDe]
rst.UPdate
rst.MoveNext
Loop
Me.Requery
Set rst = Nothing
End Sub