PC Review


Reply
Thread Tools Rate Thread

Combo Box Click Event

 
 
kirkm
Guest
Posts: n/a
 
      16th Aug 2007
Hi, I'm having a bit of trouble selecting an item in a combo box.

I have set the row source, and the list of items and drop down box
function as expected. But I want to know if the user has clicked
something in the list

The click event doesn't respond the first time on item one, only items
two and greater. After that it's ok - but if you want the first item
with the first click - what do you do?

Thanks - Kirk
 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      16th Aug 2007
Set ListIndex to -1 so that nothing is initially selected.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"kirkm" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi, I'm having a bit of trouble selecting an item in a combo box.
>
> I have set the row source, and the list of items and drop down box
> function as expected. But I want to know if the user has clicked
> something in the list
>
> The click event doesn't respond the first time on item one, only items
> two and greater. After that it's ok - but if you want the first item
> with the first click - what do you do?
>
> Thanks - Kirk



 
Reply With Quote
 
kirkm
Guest
Posts: n/a
 
      16th Aug 2007
On Thu, 16 Aug 2007 08:13:32 +0100, "Bob Phillips"
<(E-Mail Removed)> wrote:

>Set ListIndex to -1 so that nothing is initially selected.


Thanks Bob but I can't try that yet as I have another nasty.

The code is


Private Sub cboFiles_Click()

cboFiles.Visible = False
cboTheYear.Visible = True
cboTheYear.DropDown

End Sub


And the error message is

Run-time error '-2147417848 (80010108)':
Automation error
The object invoked has disconnected from its clients.

Help says something about setting On Error stuff but that's
not helping yet!

Any idea why what that error message is?

Thanks - Kirk
 
Reply With Quote
 
=?Utf-8?B?SGFsaW0=?=
Guest
Posts: n/a
 
      17th Aug 2007
Hi,

Try to use MouseUp event
but it will fire all mouse up action with certain button or all mouse button.
--
Regards,

Halim



"kirkm" wrote:

> Hi, I'm having a bit of trouble selecting an item in a combo box.
>
> I have set the row source, and the list of items and drop down box
> function as expected. But I want to know if the user has clicked
> something in the list
>
> The click event doesn't respond the first time on item one, only items
> two and greater. After that it's ok - but if you want the first item
> with the first click - what do you do?
>
> 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
On click event procedure with a combo box amjjam Microsoft Access 2 17th Jun 2009 05:36 PM
Right-click Combo Event John Microsoft Excel Programming 2 19th Sep 2005 02:37 PM
Combo box On Click event doesn't fire. Mr.Smith Microsoft Access Form Coding 3 7th May 2004 12:08 AM
Combo box click event in a subform =?Utf-8?B?cXVpbnR1bGx5?= Microsoft Access Form Coding 0 24th Feb 2004 08:41 PM
combo box not recognising click event first time David Batt Microsoft Access Forms 2 12th Feb 2004 01:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:43 PM.