If Table![tbl_EliteRotation]![Opt out].Value = Yes Then
DoCmd.RunSQL ("UPDATE tbl_EliteRotation SET tbl_EliteRotation.[Opt out] = No WHERE Forms![frm_EliteData]![List0].value=[tbl_EliteRotation]![EMP_ID")
ElseIf Table![tbl_EliteRotation]![Opt out].Value = No Then
DoCmd.RunSQL ("UPDATE tbl_EliteRotation SET tbl_EliteRotation.[Opt out] = Yes WHERE Forms![frm_EliteData]![List0].value=[tbl_EliteRotation]![EMP_ID]")
End If
Me.refresh
|