Sub CheckNumber Dim objPage Set objPage = ThisEvent.Object Dim objChkBox Set objChkBox = objPage.Controls("Check1") Dim objTxtBox Set objTxtBox = objPage.Controls("Edit1") If (objChkBox.Value = False) And (objTxtBox.Value = "") Then ThisEvent.Result = False ThisEvent.MessageText = "Please add a value to the text box > 0" ElseIf (objChkBox.Value = True) And (objTxtBox.Value < 0) Then ThisEvent.Result = False ThisEvent.MessageText = "Raise the alert!" End If End Sub
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.