473,385 Members | 1,829 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,385 software developers and data experts.

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 2523
MLH <CR**@NorthState.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*********@sonyericsson.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******@pcdatasheet.com
www.pcdatasheet.com
"MLH" <CR**@NorthState.net> wrote in message
news:cb********************************@4ax.com...
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**@NorthState.net> wrote in
news:cb********************************@4ax.com:
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**@NorthState.net> wrote in
news:ut********************************@4ax.com:
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
MLH
Tab to it and press enter.
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

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


Nov 13 '05 #11
MLH <CR**@NorthState.net> wrote in
news:93********************************@4ax.com:
Leaving aside the inherent misogyny in your longwinded answer, how
else would one execute a command button without using the mouse?


Tab to it and press enter.


That's a logical alternative.

It's just not the way Microsoft (or Apple) decided to implement it.

Too bad you don't agree with The Way Things Are.

As I learned in my days trying to program Paradox without using WAIT
TABLE (I hated having to redefine the keyboard interface with every
call to it), if you don't like the basic design of the platform
you're using, you shouldn't be using that platform.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 13 '05 #12
"Trevor Best" <no****@besty.org.uk> wrote in message
news:42**********************@news.zen.co.uk...
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". :-)


And Iraqu...?

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

Nov 13 '05 #13
Douglas J. Steele wrote:
"Trevor Best" <no****@besty.org.uk> wrote in message
news:42**********************@news.zen.co.uk...
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". :-)

And Iraqu...?


Well at least on this side of the Atlantic, we can pronounce it properly :-)

--
[Oo=w=oO]

Nov 13 '05 #14
(top posting fixed to make this post readable)

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


Tab to it and press enter.
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx


then we're back to your other argument where additional to the spacebar
having a function, the enter key for years has produced a carriage
return and line feed pair.

--
[Oo=w=oO]

Nov 13 '05 #15
The British do not have the last word :-) in pronouncing the names of
countries. The 'proper' pronunciation of Nicaragua is not 'Nick a RAG
goo uh' :-).

James A. Fortune

Nov 13 '05 #16
MLH
<snip>
then we're back to your other argument where additional to the spacebar
having a function, the enter key for years has produced a carriage
return and line feed pair.

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Yeah, but that's all it does. It doesn't print a space.

Nov 13 '05 #17

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

Similar topics

2
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...
1
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) ....
0
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 =...
0
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...
7
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 ...
4
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
by: lennin | last post by:
#define NULL 0 int main() { unsigned int p = NULL; /* Empty your mind */ if (p!=NULL) delete &p;
3
dmjpro
by: dmjpro | last post by:
why can't i access this in static method ...... plz help me ... thanxxxxx
5
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...
12
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
0
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...

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.