I have the following code in the entering event of several fields and it works just fine:Sub Entering(Source As Field)
Dim ws As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc = ws.currentdocument
uidoc.GotoNextField
End Sub
HOWEVER in two of the fields I don’t want to go to NEXT field, I want to go to a specific field but not sure how to insert code, how do I insert "Call source.gotofield (fieldname), I keep getting errors
Source in the entering, exiting, onChange, onFocus, etc. events refers to the FIELD not the UIDocument. So calling source.gotofield will always error out, because the field doesn’t have that method.
You’ll need to call uidoc.gotofield(fieldname) for it to work.