Sub Querysave(Source As Notesuidocument, Continue As Variant) Dim ws As New NotesUIWorkspace Dim uidoc As NotesUIDocument Set uidoc = ws.CurrentDocument If uidoc.FieldGetText("SupportCenter") = "" Then Messagebox "Please select Support Center" continue = False End If End Sub
Sub Querysave(Source As Notesuidocument, Continue As Variant) Dim ws As New NotesUIWorkspace Dim uidoc As NotesUIDocument On Error Goto Errhandle Set uidoc = ws.CurrentDocument If uidoc.FieldGetText("SupCenter") = "" Then Messagebox "Please select Support Center" continue = False End If Errhandle: Messagebox "Error" & Str(Err) & ": " & Error$ End Sub