unwanted move to next record

V

Vsn

Hi all,

I running in to the following problem, which I seem not to be able to solve,
any help is appriciated.

A single form, with navigation and selection buttons turned off. A simple
record sourse with 2 text fields f_1 and f_2. I have only on data field
(f_1) linked to a textbox. Further I have one more textbox with is unbound
(txtUser), this is also the only field the user can enter and edit. Now when
the user uses return, the form jumps to the next record........... I would
like it to do nothing, until the VB code has checked a few things and than
moves to the next record which is randomly appointed in the VB code.

Now how can I avoid that the form jumps to the next record upon pressing the
'enter key' in the txtUser field?

Thanks all,
Ludovic

--
 
J

Jeanette Cunningham

Ludovic,
there is a form property called Cycle
It is on the Other tab of the property dialog for the form.
Set it to Current Record to stop the form going to the next record when you
press enter.


Jeanette Cunningham -- Melbourne Victoria Australia
 
V

Vsn

Jeanette,

Thanks a lot, this was exactly what I was looking for, but could not
resolve.

Regards,
Ludovic
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top