OnBlur problem

Hi,I am a newbie with LotusScript and have a problem with OnBlur for a ComboBox in a form I’ve created.

I have a field called Profiles where the user must choose a value. If they leave it blank they get an error message.

All this works fine but how do I get the focus back on the Profiles field?

Sub Onblur(Source As Field)

If CurrentField = "" Then

	Msgbox "You must choose a profile", 48, "No profile was choosen!"

	Continue=False

	

End If

Brgds,

Hans

Subject: OnBlur problem

Call notesUIDocument.GotoField( fieldName$ )

Regards

SKS

Subject: RE: OnBlur problem

Hi,Thanks, found that part but still…

my script looks like this:

Sub Onblur(Source As Field)

Dim workspace As New NotesUIWorkspace

Dim uidoc As NotesUIDocument

Set uidoc = workspace.CurrentDocument



If CurrentField = "" Then

	Msgbox "You must choose a profile", 48, "No profile was choosen!"

	Continue=False

	Call uidoc.GotoField("Profiles")

	

End If

End Sub

The MsgBox runs as it should but the cursor goes to the next field in the form and I can continue without choosing a profile and I get prompted to choose a profile even when I do???

Any ideas??

Brgds,

Hans

Subject: RE: OnBlur problem

Try this

Msgbox “You must choose a profile”, 48, “No profile was choosen!”

Call uidoc.GotoField(“Profiles”)

Continue=False