Option Explicit
Dim varUniqueID
Sub UniqueID
' CREATE THE VARAIBLE AND ASSIGN IT THE CREATED GUID
' Dim createUniqueID
' I commented this varaible out because I delclared it global above in the option explicit...you can delete the global varaible and declare it here if you want...
' globally you can do other stuff with it...
varUniqueID= System.CreateGuid
' NEXT YOU HAVE TO GRAB THE FORM PAGE AND ASSIGN THE VARAIBLE TO THE TEXTBOX
Dim objRS, objSelLayer, objEFPageOneControls3, objEditForm3
Set objSelLayer = Map.SelectionLayer
Set objRS = objSelLayer.Records
objRS.Bookmark = Map.SelectionBookmark
Set objEditForm3 = application.map.layers("Outfalls").forms("EDITFORM")
Set objEFPageOneControls3 = objEditForm3.Pages("page1").Controls
objEFPageOneControls3("Edit1").Value = varUniqueID
End Sub Hi Jay, I too am new to coding. I have followed your instructions step by step, but for some reason the Unique ID field is blank. Do you have any other advice why this may not work on my unit? Any help is greatly appreciated.Thanks!Kyle