473,385 Members | 1,712 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,385 software developers and data experts.

Windows XP and Combobox problems

were currently having a rollout of windows xp pro on all our machines

everything has seemed to be fine except that in our vb.net application none
of the comboboxes are getting there lists populated as they did in win2k, i
need the code to be able to work fine in both winXP and win2K

the code im using is:

Dim strConnect As String = _
"Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=\\Equity2\Common Documents\Master Database\OwnAndSave.mdb;" & _
"Persist Security Info=False"

Dim ocon As OleDbConnection = New OleDbConnection(strConnect)
ocon.Open()

'Declare a DataSet Object in Preparation for the DataAdapter ResultSet
Dim ds As DataSet = New DataSet()
'Declare and Create Data Adapter
Dim da As OleDbDataAdapter = New OleDbDataAdapter()
da.SelectCommand = New OleDbCommand("SELECT Employee.Full_Name, Employee.CSR
FROM(Employee)WHERE (((Employee.CSR)=1));", ocon)

da.Fill(ds)
ComboBox5.DataSource = ds.Tables(0)
ComboBox5.DisplayMember = "Full_Name"

da.Dispose()
ds.Dispose()
ocon.Close()
ocon.Dispose()
Nov 20 '05 #1
3 2502
OK Mike a few questions.

Check in debugger, do the tables get filled with the data or are you getting
an exception thrown, and if so where ? .

let me know

OHM

"Mike Fellows" <mi*************@equityhouse.co.uk.SPAM> wrote in message
news:fm******************@newsfep2-gui.server.ntli.net...
were currently having a rollout of windows xp pro on all our machines

everything has seemed to be fine except that in our vb.net application none of the comboboxes are getting there lists populated as they did in win2k, i need the code to be able to work fine in both winXP and win2K

the code im using is:

Dim strConnect As String = _
"Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=\\Equity2\Common Documents\Master Database\OwnAndSave.mdb;" & _ "Persist Security Info=False"

Dim ocon As OleDbConnection = New OleDbConnection(strConnect)
ocon.Open()

'Declare a DataSet Object in Preparation for the DataAdapter ResultSet
Dim ds As DataSet = New DataSet()
'Declare and Create Data Adapter
Dim da As OleDbDataAdapter = New OleDbDataAdapter()
da.SelectCommand = New OleDbCommand("SELECT Employee.Full_Name, Employee.CSR FROM(Employee)WHERE (((Employee.CSR)=1));", ocon)

da.Fill(ds)
ComboBox5.DataSource = ds.Tables(0)
ComboBox5.DisplayMember = "Full_Name"

da.Dispose()
ds.Dispose()
ocon.Close()
ocon.Dispose()

Nov 20 '05 #2
Im still debugging on win2k machine so i cant test on a xp machine yet

"One Handed Man [ OHM ]" <te***************************@BTOpenworld.com>
wrote in message news:eC**************@TK2MSFTNGP12.phx.gbl...
OK Mike a few questions.

Check in debugger, do the tables get filled with the data or are you getting an exception thrown, and if so where ? .

let me know

OHM

"Mike Fellows" <mi*************@equityhouse.co.uk.SPAM> wrote in message
news:fm******************@newsfep2-gui.server.ntli.net...
were currently having a rollout of windows xp pro on all our machines

everything has seemed to be fine except that in our vb.net application none
of the comboboxes are getting there lists populated as they did in

win2k, i
need the code to be able to work fine in both winXP and win2K

the code im using is:

Dim strConnect As String = _
"Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=\\Equity2\Common Documents\Master Database\OwnAndSave.mdb;"
& _
"Persist Security Info=False"

Dim ocon As OleDbConnection = New OleDbConnection(strConnect)
ocon.Open()

'Declare a DataSet Object in Preparation for the DataAdapter ResultSet
Dim ds As DataSet = New DataSet()
'Declare and Create Data Adapter
Dim da As OleDbDataAdapter = New OleDbDataAdapter()
da.SelectCommand = New OleDbCommand("SELECT Employee.Full_Name,

Employee.CSR
FROM(Employee)WHERE (((Employee.CSR)=1));", ocon)

da.Fill(ds)
ComboBox5.DataSource = ds.Tables(0)
ComboBox5.DisplayMember = "Full_Name"

da.Dispose()
ds.Dispose()
ocon.Close()
ocon.Dispose()


Nov 20 '05 #3
Ok, but you can put some debug code in to find out cant you.

at least do a messagebox.show( table stuff )

to check your data is there
"Mike Fellows" <mi*************@equityhouse.co.uk.SPAM> wrote in message
news:yR******************@newsfep2-gui.server.ntli.net...
Im still debugging on win2k machine so i cant test on a xp machine yet

"One Handed Man [ OHM ]" <te***************************@BTOpenworld.com>
wrote in message news:eC**************@TK2MSFTNGP12.phx.gbl...
OK Mike a few questions.

Check in debugger, do the tables get filled with the data or are you getting
an exception thrown, and if so where ? .

let me know

OHM

"Mike Fellows" <mi*************@equityhouse.co.uk.SPAM> wrote in message
news:fm******************@newsfep2-gui.server.ntli.net...
were currently having a rollout of windows xp pro on all our machines

everything has seemed to be fine except that in our vb.net application

none
of the comboboxes are getting there lists populated as they did in

win2k,
i
need the code to be able to work fine in both winXP and win2K

the code im using is:

Dim strConnect As String = _
"Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=\\Equity2\Common Documents\Master

Database\OwnAndSave.mdb;" &
_
"Persist Security Info=False"

Dim ocon As OleDbConnection = New OleDbConnection(strConnect)
ocon.Open()

'Declare a DataSet Object in Preparation for the DataAdapter ResultSet
Dim ds As DataSet = New DataSet()
'Declare and Create Data Adapter
Dim da As OleDbDataAdapter = New OleDbDataAdapter()
da.SelectCommand = New OleDbCommand("SELECT Employee.Full_Name,

Employee.CSR
FROM(Employee)WHERE (((Employee.CSR)=1));", ocon)

da.Fill(ds)
ComboBox5.DataSource = ds.Tables(0)
ComboBox5.DisplayMember = "Full_Name"

da.Dispose()
ds.Dispose()
ocon.Close()
ocon.Dispose()



Nov 20 '05 #4

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

Similar topics

0
by: Duncan Spence | last post by:
Hi all, I'm sure I'm doing something silly here, but can't see it! I'm creating a series of combo boxes on a Windows Form in VB.NET. The lists of all of the comboboxes are identical and are...
0
by: billmiami2 | last post by:
We are having trouble with an MS Access 2000 application. The application is set up in the standard fashion with a database mdb and a user interface mdb with links from the user to the data file. ...
3
by: Bill C. | last post by:
Hello, I know this has been discussed a lot already because I've been searching around for information the last few weeks. I'm trying to implement a DataGridComboBoxColumn class. I've found...
2
by: John Tyce | last post by:
When a button is clicked, a date is inserted or added into a combo box like this : ComboBox.Items.Add(string) or ComboBox.Items.Insert(0,string); Either way, the new string does not show up in the...
3
by: TT (Tom Tempelaere) | last post by:
Hay there, I'm writing my own DataGridComboBoxColumn because .NET 1.1 does not have one (I hope .NET 2.0 supplies one). I based it on this article:...
1
by: Scott Davies | last post by:
Hi, I'm looking for some help on a small program that I'm trying to develop in VB.NET. I'm having trouble getting the code that I've written to work, can anyone shed some light as to where I'm...
0
by: Scott Davies | last post by:
Hi, I'm looking for some help on a small program that I'm trying to develop in VB.NET. The program I'm trying to develop needs to be able to do the following: - Select remote server -...
4
by: Jerad Rose | last post by:
I'm baffled by this -- is there not a typed object used for ComboBox Items? Best I can tell, all of the methods for ComboBox that accept an Item are of type Object. Why in the world is a...
2
by: graywolf | last post by:
Hi there, I have just started using Access 2003 in the last couple of months and have a couple of problems i would like some help with please for a project i am working on. PROBLEM 1. I have a...
21
by: Dan Tallent | last post by:
In my application I have a form (Customer) that I want to be able to open multiple copies at once. Within this form I have other forms that can be opened. Example: ZipCode. When the user enters...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.