Private Sub Data1_Validate (Action As Integer, Save As Integer)
‘ if a save is occurring, check save with user. Cancel and refresh if
‘ user doesn’t want change.
Dim iResponse As Integer
If Save = True Then ‘Data has changed and is being saved
iResponse As Integer = MsgBox (“Really want to save?”, vbYesNo)
If iResponse = vbNo Then
Save = False
Data1.UpdateControls ‘ Refresh fields
End If
End If
End Sub


Vota este artículo:
1 Estrella2 Estrellas3 Estrellas4 Estrellas5 Estrellas (No Ratings Yet)
Loading ... Loading ...

Posts anterior y posterior:


Posts Relacionados: