473,320 Members | 2,112 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Ampersand in command button caption not working

Seth Schrock
2,965 Expert 2GB
I read online that placing an ampersand in the caption of a control will make that control accessible by pressing Alt + the character being underlined. I'm trying to do that, but it isn't working. I have two buttons with the following captions, New Task and Delete Task. I have the ampersand placed at the beginning of each caption so I have New Task and Delete Task. However, pressing Alt + N or Alt + D doesn't do anything. For testing purposes, I have the On_Click event produce a message box that says "It worked", but it doesn't come up. Is there something else that I need to configure to get it to work? I'm using Access 2010.

I'm working with a command button.
Aug 3 '12 #1

✓ answered by PGAC

Hi Seth,

It seems when the form is first opened the hotkey is OK but once the focus goes into a tab the hotkey functionality 'ceases to exist' or at least that is what I have found. I suppose it depends on the form.

Anyhow, with earlier versions of Access 2010, hotkeys and tabs just don't mix.

3 3454
PGAC
7
Do you use tabs on the form with the command button? I heard and know first hand that in earlier versions of 2010, tabs seem to interfere with hotkeys (interfere meaning non-functional).
Aug 4 '12 #2
Seth Schrock
2,965 Expert 2GB
Very interesting. I actually do have tabs on my form. The button is actually in the tab control. Does that matter? Does it work if button is off the tab or does just having the tab break it?
Aug 4 '12 #3
PGAC
7
Hi Seth,

It seems when the form is first opened the hotkey is OK but once the focus goes into a tab the hotkey functionality 'ceases to exist' or at least that is what I have found. I suppose it depends on the form.

Anyhow, with earlier versions of Access 2010, hotkeys and tabs just don't mix.
Aug 4 '12 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: MLH | last post by:
This is one for you gurus. Someone has undoubtedly already done this. How difficult would it be to recurse all command buttons and textbox controls on all forms, appending an incrementing number to...
2
by: Michael Mak | last post by:
Im having trouble with my assignment related to Visual Basic, my problem is i've created one text box and one label box. In my text box, it requires the user to type in a number. Im trying to...
5
by: Drew | last post by:
I am building an application for inserting and updating one field in a database. The database is in SQL Server and I am using Classic ASP. I have a dropdown listbox that is populated with names,...
1
by: Nick | last post by:
Hi Has anyone encountered the "readonly" issue with Microsoft Forms 2.0 TextBox ? The locked property of the control seems to have no effect - always enabled regardless of whether it's set to...
1
by: dave2071 | last post by:
Hi I've been assigned to fix a access form/db app and i've been stumped on simple problem. I have a table say table1 with column a,b,a1,b1 and a textbox i want to set the source control of...
3
by: abolos | last post by:
Hello all, I have a query with the following code: SELECT tblData.Name FROM tblData WHERE (((tblData.Talk) Like "*" & !! & "*")); The text30 is in the header of the form and not in its...
3
Wagsy
by: Wagsy | last post by:
Hi All, I have a virtual keypad - say 0-9, when i press the buttons i want the sequence of keypresses to appear in a textbox. at the moment when i type them in they just overwrite each other. i want...
7
by: dkohel | last post by:
I have a form that returns 100 items. All of the items have have a different value in their Category field. EXAMPLE: ---------------- A B C How can I change the value of the caption in...
9
by: =?Utf-8?B?dHBhcmtzNjk=?= | last post by:
OK I have some Chinese text in sql server column that looks like this: 12大专题调研破解广东科学发展难题 This is unicode? Anyway, I put this data into a text area like this:...
3
by: tparks69 | last post by:
I'm getting some Chinese language data from sql server in some encoded format, maybe unicode?... it starts with an ampersand '&', then there is a '#' pound sign, then a 5 digit integer, then a semi...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.