Display a warning MsgBox

Laura

New member
Local time
Today, 10:25
Joined
Jun 15, 2000
Messages
8
How can I display a MsgBox showing a warning if the user violates a multiple index and enters repeating data?
 
use the followin vb
glad to answer
Private Sub Form_Error(DataErr As Integer, Response As Integer)
If DataErr <> 3022 Then Exit Sub
Call MsgBox("You entered the value elready existed.You must enter new value.", vbOKOnly)
Response = Cancel
End Sub
 

Users who are viewing this thread

Back
Top Bottom