473,327 Members | 2,025 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Combo Box not filling

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?
Jul 21 '05 #1
1 1152
Try adding .DataBind() to each

"JeffOfJerrsey" <Je***********@discussions.microsoft.com> wrote in message
news:F1**********************************@microsof t.com...
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?

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: vgrssrtrs | last post by:
<html> <head> <script language="JavaScript"> <!-- /* *** Multiple dynamic combo boxes *** by Mirko Elviro, 9 Mar 2005 *** ***Please do not remove this comment
0
by: Krisa | last post by:
Hello all, I just discovered something (stop me if you've heard this before....) that was causing me a significant performance hit when opening a form with subforms. To speed up loading the...
1
by: JRT | last post by:
I have a continuous form with 3 comboxes, combo1, combo2 combo3. The choices in combo2 are dtermined the what is selected in combo1 by using a where = combo1 statement. The combo is refreshed...
3
by: Kannan | last post by:
hi Currently I am working in C# windows application. I am trying to fill combo box with values We have to always use datasource property for filling values in Combo box? In VB, normally i have...
1
by: Matt | last post by:
Here is my problem. I am trying to get a combo box working that lists all the models of servers that we have. This combo box is just one of many text boxes that I have on my form. I am running a...
18
by: Vayse | last post by:
Has anyone an example of filling a combo box with a data reader? Thanks Vayse
0
by: mollyf | last post by:
I've got a combo box that I want to bind a collection to. I got the error "Complex Data Binding accepts as a data source either an IList or an IListSource" so I tried using the BindingSource,...
2
by: ravindraredekar | last post by:
Hi, I am Using 2 combo i am filling 1st combo through data base value like company name. i want to fill the name of employee in second combo when i select company name from first combo can...
5
by: punitshrivastava | last post by:
Hi to all, I am punit.i m working in php.As i m fresher in php .i am using combo box for selection of data & making Report .please tell me that how i fill the combo box dynamically.so please suggest...
0
by: Dawnyy | last post by:
I have a form which is bound to a dataset. I am filling the forms dataset on Form_Load event. On my form I have combo boxes which I am setting by running a stored procedure to return a datatable,...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.