In my app the user clicks on an existing feature. it asks them to create a historical record, if yes it runs some SQL statement that updates a related table. After the save (which works fine) I am trying to clear/set the existing controls on the 3 tabs in the form to either 0, none, NA.I am using the below code and for the most part it is working...I can modify the values on TAB 1, but for some reason the controls on TAB 2 and TAB 3 are not being effected?Anyone know why?THanks
Sub ClearForms
Dim objRS1, objEditForm1, objSelLayer1
Set objSelLayer1 = Map.SelectionLayer
Set objRS1 = objSelLayer1.Records
objRS1.Bookmark = Map.SelectionBookmark
' Clear Page 1
Dim objEFPageOneControls1
Set objEditForm1 = application.map.layers("Outfalls").forms("EDITFORM")
Set objEFPageOneControls1 = objEditForm1.Pages("page1").Controls
objEFPageOneControls1("txtSEDDIST_FT").Value = "0"
objEFPageOneControls1("txtSEDLGTH_FT").Value = "0"
objEFPageOneControls1("txtSEDWDTH_FT").Value = "0"
objEFPageOneControls1("txtOFWTRHT_IN").Value = "0"
' Clear Page 2
Dim objEFPageOneControls2
Set objEFPageOneControls2 = objEditForm1.Pages("page2").Controls
objEFPageOneControls2("txtCOMMENTS").Value = "none"
objEFPageOneControls2("Edit1").Value = "none"
objEFPageOneControls2("Edit2").Value = "none"
' Clear Page 3
Dim objEFPageOneControls3
Set objEFPageOneControls3 = objEditForm1.Pages("page3").Controls
objEFPageOneControls3("image1").Value = "none"
objEFPageOneControls3("image2").Value = "none"
objEFPageOneControls3("image3").Value = "none"
End Sub