I'm encountering a weird phenomenom: when attempting to edit VBA in a particular modal form's code module, Access begins making changes to my code before I finish a line. Spaces are added or deleted, the cursor (insertion point) is moved, and capitalization is inserted or removed. This makes it very difficult to edit or insert lines of text.
For example, if I try to type msgbox strFoo, after four or five characters are typed, the "m" and "b" have already been capitalized. When I type the space at the end of the first word, Access immediately removes it and moves the cursor back one position. Such code "normalization" usually occurs only when you move off of the line.
I've seen this behavior before when working on a form with an OnTimer event procedure and the Timer interval set to some positive value, but that is NOT the case here. I've also exported the entire database to a new blank database, de-compiled and re-compiled it, repaired and compacted it, etc., but the problem remains.
The only way I've found to stop it is to first close another form (from which the problem form is opened via DoCmd.OpenForm activated by a command button. Still, it seems to me that there's something abnormal here. Anyone have any ideas?
For example, if I try to type msgbox strFoo, after four or five characters are typed, the "m" and "b" have already been capitalized. When I type the space at the end of the first word, Access immediately removes it and moves the cursor back one position. Such code "normalization" usually occurs only when you move off of the line.
I've seen this behavior before when working on a form with an OnTimer event procedure and the Timer interval set to some positive value, but that is NOT the case here. I've also exported the entire database to a new blank database, de-compiled and re-compiled it, repaired and compacted it, etc., but the problem remains.
The only way I've found to stop it is to first close another form (from which the problem form is opened via DoCmd.OpenForm activated by a command button. Still, it seems to me that there's something abnormal here. Anyone have any ideas?