By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,312 Members | 2,030 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,312 IT Pros & Developers. It's quick & easy.

END and HOME keys not working in some Textboxes

P: n/a
I have a number of forms with large textboxes for the purposes of
editing memo fields, and just recently I've noticed some bizarre
behavior. For some textboxes the END and HOME keys do nothing, whereas
for other textboxes the END and HOME keys take the cursor to the end
and home of the text (as expected). I've isolated two textboxes and
tried comparing them but they seem to be set up in virtually the
identical manner, except for the following properties:

1. one is physically much larger than the other (although both span
multiple lines)
2. one has the Status Bar Text and the ControlTip Text set, and the
other doesn't
3. one has a Before Update event and the other doesn't (but I think
this was added after I noticed the behavior)

The forms which house the textboxes also have similar properties,
except for a couple that stand-out:

1. One has Allow Additions, and the other doesn't
2. One has the Cycle set up for Current Page, while the other is set up
for All Records
3. One has a Help file set up and the other doesn't

This is not a critical problem, but it has really got me curious.
Anybody got any ideas?

Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
A couple of possibilities.

1) Corrupted controls. If this is the case, you'll need to delete and
recreate the textboxes.

2) Code in the Key Down or Key Press event for the control (or the form if
Key Preview is also set to Yes) that is canceling the Home and End keys.

This is assuming that you can even get the cursor into the textbox. If the
textbox was set for Enabled = No and Locked = Yes, it would appear normal
but you wouldn't be able to get the cursor into it. If it was just Enabled =
No, it would be grayed out.

--
Wayne Morgan
MS Access MVP
"Edlueze" <ed*****@onegen.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
I have a number of forms with large textboxes for the purposes of
editing memo fields, and just recently I've noticed some bizarre
behavior. For some textboxes the END and HOME keys do nothing, whereas
for other textboxes the END and HOME keys take the cursor to the end
and home of the text (as expected). I've isolated two textboxes and
tried comparing them but they seem to be set up in virtually the
identical manner, except for the following properties:

1. one is physically much larger than the other (although both span
multiple lines)
2. one has the Status Bar Text and the ControlTip Text set, and the
other doesn't
3. one has a Before Update event and the other doesn't (but I think
this was added after I noticed the behavior)

The forms which house the textboxes also have similar properties,
except for a couple that stand-out:

1. One has Allow Additions, and the other doesn't
2. One has the Cycle set up for Current Page, while the other is set up
for All Records
3. One has a Help file set up and the other doesn't

This is not a critical problem, but it has really got me curious.
Anybody got any ideas?

Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.