G
Guest
Just discovered a trivial but annoying bug in MS Access 2003 SP1 (possibly in
original Office 2003 release as well). Steps to reproduce as follows:
Design new form, place CommandButton object on it and set button Caption
property to 'This && T&hat'
What Access SHOULD do is display the caption on the button with a single
ampersand between 'This' and 'That' and the 'h' in 'That' as underlined to
show the user that it's the accelerator key.
What it ACTUALLY does is get it half right. It correctly interprets the
double ampersand as meaning "I want a literal single ampersand character" but
it then miscounts which character should be underlined as the accelerator and
wrongly makes it the 'a' in 'That' rather than the 'h'.
When the form is actually running, the correct character (the 'h') is acted
on as the accelerator but because the button displays the 'a' as the
accelerator, the user is never going to know they should be using 'h' rather
than 'a'.
original Office 2003 release as well). Steps to reproduce as follows:
Design new form, place CommandButton object on it and set button Caption
property to 'This && T&hat'
What Access SHOULD do is display the caption on the button with a single
ampersand between 'This' and 'That' and the 'h' in 'That' as underlined to
show the user that it's the accelerator key.
What it ACTUALLY does is get it half right. It correctly interprets the
double ampersand as meaning "I want a literal single ampersand character" but
it then miscounts which character should be underlined as the accelerator and
wrongly makes it the 'a' in 'That' rather than the 'h'.
When the form is actually running, the correct character (the 'h') is acted
on as the accelerator but because the button displays the 'a' as the
accelerator, the user is never going to know they should be using 'h' rather
than 'a'.