PC Review


Reply
Thread Tools Rate Thread

ComboBox: Values after change event.

 
 
Kevin Hodgson
Guest
Posts: n/a
 
      25th Nov 2004
I have a DataBound ComboBox, which has a text value as the Value property,
and the UniqueID for that value is bound to the Combobox.Tag property.

When a user makes a new selection in the combobox, I need to run a SQL Query
with the UniqueID of the new value they are picking.

The .SelectedIndexChanged and .SelectedValueChanged events give me the .Tag
value BEFORE the new selection is made. I'm getting the value for the
previous value, rather than the new value the user has selected.

What order to the various change events occur, and which one will give me
the new values being selected, as opposed to the old values?


 
Reply With Quote
 
 
 
 
=?Utf-8?B?UnVsaW4gSG9uZw==?=
Guest
Posts: n/a
 
      25th Nov 2004
Suggest the UniqueID for that value is bound to the Combobox.ValueMember
property

"Kevin Hodgson" wrote:

> I have a DataBound ComboBox, which has a text value as the Value property,
> and the UniqueID for that value is bound to the Combobox.Tag property.
>
> When a user makes a new selection in the combobox, I need to run a SQL Query
> with the UniqueID of the new value they are picking.
>
> The .SelectedIndexChanged and .SelectedValueChanged events give me the .Tag
> value BEFORE the new selection is made. I'm getting the value for the
> previous value, rather than the new value the user has selected.
>
> What order to the various change events occur, and which one will give me
> the new values being selected, as opposed to the old values?
>
>
>

 
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
combobox change event triggered without change Jacob Microsoft Excel Programming 0 8th May 2007 03:53 PM
MsgBox in Enter event causes combobox not to run Change event =?Utf-8?B?UmljaGFyZA==?= Microsoft Excel Programming 0 6th Mar 2006 02:52 PM
Combobox on change event Matt Jensen Microsoft Excel Programming 4 29th Dec 2004 04:37 PM
Change minimumscale with the change event of a combobox Herbert Chan Microsoft Excel Programming 1 11th Apr 2004 12:43 PM
Combobox - change in selection and On Change event =?Utf-8?B?TGluZGE=?= Microsoft Access VBA Modules 1 4th Feb 2004 11:31 PM


Features
 

Advertising
 

Newsgroups
 


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