On Error GoTo err_Command25_Click If Form_frm.text150 = 0 Then
MsgBoxFa "åí јæÑÏí ÌåÊ ÍÐÝ íÇÝÊ äÔÏ", vbExclamation + vbMsgBoxRight, "ÊæÌå"
DoCmd.CancelEvent
Else
If MsgBox("آيا مطمئن هستيد", vbYesNo, "اخطار") = vbYes Then
Dim stDocName As String
stDocName = "query1"
DoCmd.SetWarnings False
DoCmd.OpenQuery stDocName, acNormal, acEdit
On Error Resume Next
frm.Requery
DoCmd.SetWarnings True
MsgBoxFa "ÍÐÝ ÈÇ ãæÝÞíÊ ÇäÌÇã ÔÏ", vbInformation + vbMsgBoxRight, "ÍÐÝ"
Me.Requery
End If
End If
Exit_Command25_Click:
Exit Sub
err_Command25_Click:
MsgBox Err.Description
Resume Exit_Command25_Click
End Sub