A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Combo Box not firing OnChange Event



 
 
Thread Tools Display Modes
  #1  
Old October 26th, 2008, 07:30 PM posted to microsoft.public.access
KPR
external usenet poster
 
Posts: 44
Default Combo Box not firing OnChange Event

Hi,

I have a Combo Box that is set to .dropdown when it gets the focus. However
if it drops down and the user uses the Up/Down arrow to choose a value an
then tabs out, the OnChange event doesn't fire. If the chooses the value with
a mouse click the OnChange fires fine. Any Ideas??

--Ken
  #2  
Old October 26th, 2008, 07:46 PM posted to microsoft.public.access
Douglas J. Steele[_3_]
external usenet poster
 
Posts: 3,143
Default Combo Box not firing OnChange Event

What are you hoping to achieve using the OnChange event? Try using the
AfterUpdate instead.

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


"KPR" wrote in message
...
Hi,

I have a Combo Box that is set to .dropdown when it gets the focus.
However
if it drops down and the user uses the Up/Down arrow to choose a value an
then tabs out, the OnChange event doesn't fire. If the chooses the value
with
a mouse click the OnChange fires fine. Any Ideas??

--Ken



  #3  
Old October 26th, 2008, 07:51 PM posted to microsoft.public.access
fredg
external usenet poster
 
Posts: 4,386
Default Combo Box not firing OnChange Event

On Sun, 26 Oct 2008 12:30:00 -0700, KPR wrote:

Hi,

I have a Combo Box that is set to .dropdown when it gets the focus. However
if it drops down and the user uses the Up/Down arrow to choose a value an
then tabs out, the OnChange event doesn't fire. If the chooses the value with
a mouse click the OnChange fires fine. Any Ideas??

--Ken


Use the combo box AfterUpdate event, not the Change event.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
  #4  
Old October 26th, 2008, 07:55 PM posted to microsoft.public.access
Tom van Stiphout[_2_]
external usenet poster
 
Posts: 1,653
Default Combo Box not firing OnChange Event

On Sun, 26 Oct 2008 12:30:00 -0700, KPR
wrote:

What were you going to do in the OnChange event? It is rarely used.
Check of the BeforeUpdate (for validation) or AfterUpdate event (for
doing things after a value was chosen).

-Tom.
Microsoft Access MVP



Hi,

I have a Combo Box that is set to .dropdown when it gets the focus. However
if it drops down and the user uses the Up/Down arrow to choose a value an
then tabs out, the OnChange event doesn't fire. If the chooses the value with
a mouse click the OnChange fires fine. Any Ideas??

--Ken

  #5  
Old October 26th, 2008, 08:08 PM posted to microsoft.public.access
KPR
external usenet poster
 
Posts: 44
Default Combo Box not firing OnChange Event

Thanks for the input. It works fine now.

"Douglas J. Steele" wrote:

What are you hoping to achieve using the OnChange event? Try using the
AfterUpdate instead.

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


"KPR" wrote in message
...
Hi,

I have a Combo Box that is set to .dropdown when it gets the focus.
However
if it drops down and the user uses the Up/Down arrow to choose a value an
then tabs out, the OnChange event doesn't fire. If the chooses the value
with
a mouse click the OnChange fires fine. Any Ideas??

--Ken




  #6  
Old October 26th, 2008, 08:26 PM posted to microsoft.public.access
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Combo Box not firing OnChange Event

On Sun, 26 Oct 2008 12:30:00 -0700, KPR wrote:

Hi,

I have a Combo Box that is set to .dropdown when it gets the focus. However
if it drops down and the user uses the Up/Down arrow to choose a value an
then tabs out, the OnChange event doesn't fire. If the chooses the value with
a mouse click the OnChange fires fine. Any Ideas??

--Ken


The Change event isn't appropriate - use the AfterUpdate event instead. Change
fires at every keystroke as you *change the currently selected value* in the
combo, not when a new value is selected.
--

John W. Vinson [MVP]
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:34 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.