[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Tab Control Re-Initializes after tabbing

Posted on 2011-09-08
2
Medium Priority
?
372 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
2 Comments
 
LVL 14

Accepted Solution

by:
pteranodon72 earned 2000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
In a use case, a user needs to close an opened report by simply pressing the Escape (Esc) key. This can be done by adding macro code in Report_KeyPress or Report_KeyDown event.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

872 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