How can I do this on my form?

pimek75916

New member
Local time
Today, 19:51
Joined
May 17, 2020
Messages
1
I want to make a pop box making a field mandatory
like this:
1589738874233.png
 

Attachments

  • 1589738841316.png
    1589738841316.png
    52.8 KB · Views: 89
Hi. You can use the Form's BeforeUpdate event and check for empty/required input. For example:
Code:
Private Sub Form_BeforeUpdate(Cancel As Integer)

If IsNull(Me.Surname) Then
    MsgBox "You must enter the surname.", vbCritical,"Required"
    Cancel=True
End If

End Sub
 
Last edited:
Hmm, I use...
 

Users who are viewing this thread

Back
Top Bottom