RTF2 control: having trouble with space key

M

michaelheelee

Hello,

Stephen Lebans, if you're out there, first of all I appreciate your
commitment to the user community. I recognize that you've shared free
solutions and I hope to be more polite than other posters. However, I
think I may have found a bug....but I could easily be wrong.

Odd behavior: when returning to the RTF2 control after using another
control on the form, the RTF2 feild will not except spaces. Actually,
all spaces are sent to the last control that had the focus, eventhough
all other characters are accepted by RTF2 field. Let me attempt to
explain below.

I have an .mdb, and am using the RTF2 field on a form. I have tied to
a memo field and it works well initially. The RTF2 field is in the
detail section of my form. I also have a command button (a button that
controls a search subroutine) in the header section of my form.

I find that if I click my command button, the command button retains
the focus. When I begin typing in the RTF2 field again, every time I
press "space", the command button's on_click event launches. This is
frustrating because this means I will not be able to every put spaces
in my RTF2 field, plus I have the command button running unwantedly.

I attempted to set the focus on another control, but I get simliar
results. The last control that had the focus seems to except spaces
eventhough I can successfully type other characters in the RTF2.

It's a little hard to explan over email, but I'd really appreciate
some help here. I don't have the option to purchase the $299 control,
but I have to have a better solution than using huge,clumsy OLE/Word
docs.

Can you help? Is this user error?

mhl
 
S

Stephen Lebans

Can you send me a sample MDB demonstrating this issue?
My EMail is (e-mail address removed)

The issue as described is linked to Access's capabilities as a Host
container for an ActivEx control. There have always been problems of focus
for ActiveX controls but generally they seem to be limited to subform
related issues. Do you have any code running behind your form that contains
the RTF2 control? Are you programmatically setting focus to and away the
RTF2 control?

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top