unwanted move to next record

  • Thread starter Thread starter Vsn
  • Start date Start date
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

--
 
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
 
Jeanette,

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

Regards,
Ludovic
 
Back
Top