PC Review


Reply
Thread Tools Rate Thread

Combo Box not filling

 
 
=?Utf-8?B?SmVmZk9mSmVycnNleQ==?=
Guest
Posts: n/a
 
      1st Mar 2005
Executing the following code:

With ListBox1
.DisplayMember = "UserName"
.ValueMember = "UserID"
.DataSource = dtUsers
End With

With ddlUsers
.DisplayMember = "UserName"
.ValueMember = "UserID"
.DataSource = dtUsers
End With

Causes the Listbox to fill, but leaves the dropdown list (ddlUsers) empty.
Even if I remove the listbox, the ddl stays empty

Any thoughts?
 
Reply With Quote
 
 
 
 
Jeff Davis
Guest
Posts: n/a
 
      1st Mar 2005
Try adding .DataBind() to each

"JeffOfJerrsey" <(E-Mail Removed)> wrote in message
news:F1BE2958-2515-4430-83EC-(E-Mail Removed)...
> Executing the following code:
>
> With ListBox1
> .DisplayMember = "UserName"
> .ValueMember = "UserID"
> .DataSource = dtUsers
> End With
>
> With ddlUsers
> .DisplayMember = "UserName"
> .ValueMember = "UserID"
> .DataSource = dtUsers
> End With
>
> Causes the Listbox to fill, but leaves the dropdown list (ddlUsers) empty.
> Even if I remove the listbox, the ddl stays empty
>
> Any thoughts?



 
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
Cascading Combo Box - filling a text box instead of a Combo box =?Utf-8?B?U2N1ZGE=?= Microsoft Access Forms 5 25th Jun 2007 06:46 PM
Filling a combo box giannis Microsoft VB .NET 6 14th Feb 2007 05:25 PM
filling combo box =?Utf-8?B?QWxleA==?= Microsoft Access Form Coding 1 6th Feb 2006 11:44 AM
Filling a Combo Box with VBA Ed Microsoft Excel Programming 3 11th Feb 2004 08:20 PM
filling combo box Mike Microsoft Excel Programming 5 25th Jan 2004 07:42 PM


Features
 

Advertising
 

Newsgroups
 


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