<pi********@hotmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
"Chuck" <ch*****@acm.org> wrote in message
news:2K********************@comcast.com... > Have an integer field on a form. Have implemented a keypress event such > that '+' will add 1 to the field. In debug mode, this is fine, the value > of the field is increased by 1 ... until the procedure is ended ... and > then the field contains a '+'. KeyPreview has been set to True. What is > missing??
>
> Chuck
>
Maybe I'm just lazy, but someone wrote this already. You can download
it from here...
http://www.mvps.org/access/forms/frm0041.htm
Piet,
Many thanks. It works great. Now I'll have to study it at length to try
and understand why the simple-minded approach doesn't work. Upon a '+'
keypress, I was trying to set ctl = ctl +1. As I mentioned before, when
single-stepping through it worked fine. The ctl became ctl+1. But when the
procedure terminated, The ctl became a '+'.
Chuck