Script help needed: goto next field

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

Any help would be appreciated

Thanks

Subject: Script help needed: goto next field

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.

hth.

brandt

Subject: Thanks, good call,…that works

I appreciate your help, now I’m on to the NEXT problem…lol

Thanks again

ccl