اتفضل
On Error Resume Next
Forms!forms_serh_fatora2!serh = DLookup("[id_sand]", "tabol_fatora", "[id_sand]=" & Me.id_sand)
DoCmd.Close acForm, "forms_serh_fatora1", acSaveNo
Me.Refresh
DoCmd.Requery
If Forms!forms_serh_fatora2!xxx2 = "saved" Then
Forms!forms_serh_fatora2!cansel_1.Enabled = True
Forms!forms_serh_fatora2!fary2.Enabled = True
Else
Forms!forms_serh_fatora2!cansel_1.Enabled = False
Forms!forms_serh_fatora2!fary2.Enabled = False
End If