Thanks for the reply, David. I must admit I'm not sure I understand, though!
I've included the script in the exit event for the first field that has to be completed on the form. That field's name is 'TextField2', which I have used to replace "fieldname" in the script. I then saved the form.
Now when I try the form, I click in 'TextField2' to position my cursor, enter data and then press 'Enter'. The cursor disappears! The data I eneterd stays put but I can't find the cursor nowhere.
When I try looking on other pages of the form to see if I can find the cursor, Designer will not let me go there and brings me back to the 'TextField2' where I see the text I entered now highlighted.
If I do not try to search for the cursor through the form but simply press 'Enter' again, the cursor comes back at the exact same spot where I started in 'TextField2', with the text I entered still showing.
Any idea what I am missing?
Benoit