Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cursor moves back

Status
Not open for further replies.

tis9700

Technical User
Jun 18, 2003
100
US
Hi all,
I'm using MS Access 2002.

I have a main form and subform. The main form has an unbound combobox used to select a class number and some unbound textboxes to display the Instructor of the class.
After selecting the appropriate Class, the user tabs into the subform and the cursor moves to the students last name textbox. Everytime the user starts to type a character or two, the cursor unexpectedly jumps back to the beginning position. If the user doesn't notice, they will type the name incorrectly. This appears to only be happening with this field. I've never encountered this behavior. Any ideas?
Thanks
 
What events do you have in this textbox?? Also, do you have a timer on either the mainform or the subform?? Either of these may explain your troubles...

=======================================
People think it must be fun to be a super genius, but they don't realize how hard it is to put up with all the idiots in the world. (Calvin from Calvin And Hobbs)

Robert L. Johnson III
CCNA, CCDA, MCSA, CNA, Net+, A+, CHDP
VB/Access Programmer
 
Hi mstrmage1768,
I have no code or macros assigned to any of the events in the textbox. No timers anywhere. There is an Input Mask but I've already removed it and retested, the same behavior occurred.

Could it be the way I have the main form and subform interacting? When the user selects a class from the combo box, the value is stored in the underlying subform table, STUDENTS_TEMP. And then that value appears in a bound textbox in the subform.

Thanks
 
I can't think your setup would be doing what you describe. What you describe typically happens during a Refresh of the form, a control focus change, or during a timer event. Each of these scenarios "reset" the cursor location to the beginning of the control it is currently in.

=======================================
People think it must be fun to be a super genius, but they don't realize how hard it is to put up with all the idiots in the world. (Calvin from Calvin And Hobbs)

Robert L. Johnson III
CCNA, CCDA, MCSA, CNA, Net+, A+, CHDP
VB/Access Programmer
 
This may sound crazy but I think there was some code in the background that set the focus previously to that textbox but it was deleted and recomplied along time ago. This would not be the first time previously existing code affected the program. It's like Ghost Code or something!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top