NotesuiDocument.Selectall does not work

when called from the entering event on a Date or Time control field on a form opened through uiworkspace.dialogbox

j.