473,606 Members | 2,453 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

In Access 97 and Access 2.0 applications, if a command button has the focus, the spacebar will 'PRESS" the key. How to disable this?

MLH
In Access 97 and Access 2.0 applications, if a command button has the
focus, the spacebar will 'PRESS" the key. How does one go about
disabling this annoying BEATURE?
Nov 13 '05 #1
16 2547
MLH <CR**@NorthStat e.net> writes:
In Access 97 and Access 2.0 applications, if a command button has the
focus, the spacebar will 'PRESS" the key. How does one go about
disabling this annoying BEATURE?


That is the behaviour of the buttons in all applications that run
under MS operating systems. The only way I know of to disable it would
involve subclassing the control - a very tedious and involved
procedure if you're programming in Basic.
--
Randy Yates
Sony Ericsson Mobile Communications
Research Triangle Park, NC, USA
ra*********@son yericsson.com, 919-472-1124
Nov 13 '05 #2
Is there a way to have both the spacebar and the ENTER key activate the
command button that has the focus?

Nov 13 '05 #3
Are you aware that the spacebar checks and unchecks checkboxes and option
buttons before you disable the spacebar? Many users like that feature.

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdata sheet.com
www.pcdatasheet.com
"MLH" <CR**@NorthStat e.net> wrote in message
news:cb******** *************** *********@4ax.c om...
In Access 97 and Access 2.0 applications, if a command button has the
focus, the spacebar will 'PRESS" the key. How does one go about
disabling this annoying BEATURE?

Nov 13 '05 #4
MLH <CR**@NorthStat e.net> wrote in
news:cb******** *************** *********@4ax.c om:
In Access 97 and Access 2.0 applications, if a command button has
the focus, the spacebar will 'PRESS" the key. How does one go
about disabling this annoying BEATURE?


The only thing I can think of is to use KeyPreview to make all
presses of the spacebar check to see if a command button has the
focus, and if so, discard the keypress.

But why would you *want* to disable the standard behavior of every
Windows command button that has ever existed in every application
and every part of the OS since Windows was created?

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 13 '05 #5
MLH
You are all correct. Its a bad idea.
A waste of time to fight such a firmly
entrenched standard.

However, its not as bad as the idea
of misusing the space bar in the first
place. Bastardizing the function of one
key on a keyboard with over 100 keys
was a dumb idea. It probably arose from
a 25-year veteran typist who was a whiz
on mechanical typewriters that had no
Enter or Return keys. Its likely that she
hated the IBM selectric. She probably had
a lot of pull in the office politics arena.
She probably loved to use the space bar.
Undoubtedly, she pissed, moaned and
groaned about it so much that the pussy
whipped, jelly-fish backboned IT manager
gave in to her ridiculous bitching because
he was afraid that pissing her off might
result in him losing his job. Keyboards
were patterned after typewriters. Space-
bars were used a lot - generally between
every word. They were long so left and
right thumbs would have equal access.
And on a typewriter, they always made a
space when pressed. I already have two
Enter keys on my keyboard. I find that's
sufficient.

Most would agree that just because something
can be done doesn't make it a good idea. This
was a bad idea.
Nov 13 '05 #6
MLH wrote:
Most would agree that just because something
can be done doesn't make it a good idea. This
was a bad idea.


I think having the Q key enter the letter Q is a bad idea, too!
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
Nov 13 '05 #7
MLH
I disagree.

I think having the Q key enter the letter Q is a bad idea, too!


Nov 13 '05 #8
MLH <CR**@NorthStat e.net> wrote in
news:ut******** *************** *********@4ax.c om:
You are all correct. Its a bad idea.
A waste of time to fight such a firmly
entrenched standard.

However, its not as bad as the idea
of misusing the space bar in the first
place.


Leaving aside the inherent misogyny in your longwinded answer, how
else would one execute a command button without using the mouse?

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 13 '05 #9
MLH wrote:
I disagree.
I think having the Q key enter the letter Q is a bad idea, too!



Nope, he's right, unless you're typing in "Qantas" the "Q" key should
enter the letters "qu". :-)

--
[Oo=w=oO]

Nov 13 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2240
by: jason | last post by:
Will this work - dynamic determination of root (local or web host) and consume this in include file anywhere. I am concerned about dynamic construction of virtual absolute include in the consuming file. Take a look and tell me what you think: GLOBAL.ASA Sub application_onstart
1
1469
by: Peder Bacher | last post by:
Hello :-) My question is: If I query a partitioned view, but don't know the values in the "where x in(<expression>)" clause, i.e.: select * from viewA where intVal in(select intVal from tbl1) . Compared to: select * from viewA where intVal in(5,6). Of course "intVal" is partitioning column. Will this result in an optimized query that searches only the relevant tables?
0
1618
by: Ken Bass | last post by:
I am getting this error message when trying to use prepared statements. My code is: /* mysock is an opened MYSQL* connection */ char *querystr = "SELECT * FROM foo"; MYSQL_STMT *stmt = mysql_stmt_init(mysock); /* returns non-null */ if (mysql_stmt_prepare(stmt, querystr, strlen(querystr)) { /* error */
0
8285
by: Jim Andersen | last post by:
Hope this helps someone. SQL server 2000. I imported some text into a table. "insert into tbltst (field1, field2) SELECT field1, field2 FROM OpenDataSource('Microsoft.Jet.OLEDB.4.0','Data Source=c:\temp;Extended properties=Text')...tstfile#txt" It worked great. As long as I was logged in as user sa. When I finished testing, I began to receive the error:
7
3060
by: Leonardo D'Ippolito | last post by:
Hello all, I need to get the MAC ADDRESS of a NIC without using WMI. Microsoft has this piece of code in their knowledge base: http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q118623 How can I access this kind of funtion from a C# program? An example would be great...
4
1931
by: silverburgh.meryl | last post by:
I am currently access this newsgroup thru Google group web interface. Is it possible to access this newsgroup using Thunderbird? Thank you.
8
1421
by: lennin | last post by:
#define NULL 0 int main() { unsigned int p = NULL; /* Empty your mind */ if (p!=NULL) delete &p;
3
2226
dmjpro
by: dmjpro | last post by:
why can't i access this in static method ...... plz help me ... thanxxxxx
5
1200
by: John | last post by:
Hi My vb.net winform app has frmMyForm as the start-up form. I have enclosed My.Forms.frmMyForm.Show() within try/catch. Will this do the trick of handling all exceptions that have not been handled elsewhere? Thanks Regards
12
1526
by: Odyssey | last post by:
I am new to thescripts and hope this is the correct forum to post this question. I want to simplify and reduce unneeded installed programs, partly to minimize security risks. If I uninstall .NET 1.0 and 1.1, and it turns out that something else needs them, will .NET 2.0 handle the job? If not, will I get an opportunity to reinstall the needed version, and if so, will this be a fairly painless process? I am not a very advanced user. Thanks.
0
7959
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8449
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8432
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8105
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8310
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
5968
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5466
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3987
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1561
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.