PC Review


Reply
Thread Tools Rate Thread

Click Event - list box

 
 
kirkm
Guest
Posts: n/a
 
      10th Mar 2007

I'm getting the click event firing as soon as a Form & List box open.

Stepping through my code I see the Click event happens immediately
after 'Private Sub List1_Enter()'

Is this an obvious way to avoid this somehow? I only want the click
event occurring after a click. (Which it does as well, but this
initial one stuffs everything up.)

Thanks - Kirk
 
Reply With Quote
 
 
 
 
=?Utf-8?B?T3NzaWVNYWM=?=
Guest
Posts: n/a
 
      10th Mar 2007
Have you got both Enter and Click events? (ie. 'Private Sub List1_Enter()'
and 'Private Sub List1_Click()'.) Do you really need both?

I am assuming that you are opening the list box with code and if so you
could try putting in the following line of code 'Application.EnableEvents =
False' immediately before opening the list box and then
'Application.EnableEvents = True' Immediately after opening the list box and
see if it suppresses the call to the enter event.

Regards,

OssieMac

"kirkm" wrote:

>
> I'm getting the click event firing as soon as a Form & List box open.
>
> Stepping through my code I see the Click event happens immediately
> after 'Private Sub List1_Enter()'
>
> Is this an obvious way to avoid this somehow? I only want the click
> event occurring after a click. (Which it does as well, but this
> initial one stuffs everything up.)
>
> Thanks - Kirk
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
List Box Click Event Anomaly. Peter Hibbs Microsoft Access Forms 10 11th Mar 2010 11:13 AM
Dbl Click Event for List Box Problem: Please Help!! shondra.allen@horizononline.com Microsoft Access Form Coding 0 30th Aug 2006 10:22 PM
List Box Double Click Event Need help please Jeremy0028 Microsoft Access Forms 0 9th Feb 2006 05:55 AM
List box Double Click Event =?Utf-8?B?UGxheWE=?= Microsoft Access Form Coding 0 25th Oct 2004 04:35 PM
click event of list box george Microsoft Access Form Coding 1 13th Apr 2004 12:41 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:29 AM.