Solved

Tab Control Re-Initializes after tabbing

Posted on 2011-09-08
2
365 Views
Last Modified: 2012-05-12
Hi Experts,

I have a form with many-many controls, placed into tab controls - 3 pages each.

My issue is that when i move through the controls, and when i hit tab again on one of the controls, the tab controls regains focus, and wipes the entered data.  Hopwever, i can get the data when i hit Shift+Tab.

My suspicion is that I'm getting to the end of my tab order, i trigger a MoveNext event, which is a new record, but how can i prevent this?  

If my suspicion is correct, can I prevent the form from changing records,  or can I do something like

If MoveNext triggered
  Execute Move Previous
  control1.SetFocus
End If

Thank you
0
Comment
Question by:APD_Toronto
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 14

Accepted Solution

by:
pteranodon72 earned 500 total points
ID: 36505095
Look at you form's Cycle property in Form Design View. It is on the Other tab in the Properties window.
The default value is All Records, which describes the behavior you see -- tabbing from the last control in the tab order moves to the next (or new) record. The entry you've made does not get "wiped out", it gets saved with the previous record.

Change the Cycle property to Current Record and you'll stay on the same record but move the control with the lowest tab index.

HTH,
pT72
0
 

Author Closing Comment

by:APD_Toronto
ID: 36505254
You learn something every day - Thanks!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question