Prevent Adding Record Tabbing Thru Fields

  • Thread starter Thread starter Barkster
  • Start date Start date
B

Barkster

How do I prevent the adding of records when tabbing through all the
fields on a form? I want to force them to push to insert button. Do I
have to hand code my sql to do this or is there a setting I can change
to prevent this. Thanks
 
In the form's properties, find the one that deals with "cycling". Set it to
"Current Record". That way, when someone tabs "out" of the "last" control
on the form, the focus goes back to the "first" control on the form. Since
you don't leave the form, you don't save the record.

Now add your <Insert> command button.

Good luck!

Jeff Boyce
Microsoft Office/Access MVP
 
is there a setting I can change
to prevent this

Set the Form's Cycle property to "Same Record".

Tabbing past the last field in tab order will put you back onto the
first field of the same record.

John W. Vinson[MVP]
 
Exactly what I needed, saved a few hours of writing huge sql
statements. Thanks!
 

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

Back
Top