اذهب الي المحتوي
أوفيسنا

الردود الموصى بها

قام بنشر (معدل)

طريقةوضع الكود في زر التحديث  الكود موجود   اليكم البرنامج في المرفق

Option Compare Database
Dim ii As Byte
Private Sub NoEmptyTexts()
Dim ctl As Control
For Each ctl In Me.Controls
If ctl.ControlType = acTextBox Or ctl.ControlType = acComboBox Then
If IsNull(ctl) Or ctl = "" Then
ii = 1
MsgBox "ÊäÈíå ÇáÑÌÇÁ ãáÁ ÌãíÚ ÇáÎÇäÇÊ ÇÌÈÇÑí"
DoCmd.CancelEvent
ctl.SetFocus
Exit For
Else
ii = 2
End If
End If
Next ctl
End Sub

Private Sub Form_Open(Cancel As Integer)

End Sub
Private Sub ÃãÑ41_Click()
Call NoEmptyTexts
If ii = 1 Then
Exit Sub
DoCmd.CancelEvent
Else
Me.Refresh
MsgBox " ÊãÊ ÚãáíÉ ÊÚÏíá ãÚáæãÇÊ ÇáãæÙÝ ÇáÑãÒ ÇáæÙíÝí" & "" & Me.sname & "" & " " & "" & usr_, _
    vbInformation, _
    "ÊäÈíå"
End If
DoCmd.GoToRecord , , acNewRec
End Sub

2018-2.rar

تم تعديل بواسطه بلال اليامين

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

زائر
اضف رد علي هذا الموضوع....

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • تصفح هذا الموضوع مؤخراً   0 اعضاء متواجدين الان

    • لايوجد اعضاء مسجلون يتصفحون هذه الصفحه
×
×
  • اضف...

Important Information