473,398 Members | 2,404 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,398 software developers and data experts.

Access DB column into List Box

Hi guys,

Is there any way to access the full column form a table into a List
Box..If you have some samle codes ..plz forward them..thats very useful for
me to refer..

Thanks in Advance,
Aravind.
Nov 17 '05 #1
2 1744
Aravind,

You might want to look in the documentation at the System.Data.OleDb
namespace, since that is what you are going to typically use to access an
Access database.

Once you have that, you can easily select the data (single column) from
the table into a DataSet, and bind that to the ListBox (through the
DataSource and DataMember properties, with the DataSource property set to
the table, and the DataMember set to the column name).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Aravind" <Ar*****@discussions.microsoft.com> wrote in message
news:CE**********************************@microsof t.com...
Hi guys,

Is there any way to access the full column form a table into a List
Box..If you have some samle codes ..plz forward them..thats very useful
for
me to refer..

Thanks in Advance,
Aravind.

Nov 17 '05 #2
Thank you Nicholas Now i got that acccess..thanks.

"Nicholas Paldino [.NET/C# MVP]" wrote:
Aravind,

You might want to look in the documentation at the System.Data.OleDb
namespace, since that is what you are going to typically use to access an
Access database.

Once you have that, you can easily select the data (single column) from
the table into a DataSet, and bind that to the ListBox (through the
DataSource and DataMember properties, with the DataSource property set to
the table, and the DataMember set to the column name).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Aravind" <Ar*****@discussions.microsoft.com> wrote in message
news:CE**********************************@microsof t.com...
Hi guys,

Is there any way to access the full column form a table into a List
Box..If you have some samle codes ..plz forward them..thats very useful
for
me to refer..

Thanks in Advance,
Aravind.


Nov 17 '05 #3

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

Similar topics

14
by: Sean C. | last post by:
Helpful folks, Most of my previous experience with DB2 was on s390 mainframe systems and the optimizer on this platform always seemed very predictable and consistent. Since moving to a WinNT/UDB...
8
by: Vladimir | last post by:
Hello, I have a table in MS Access database. It has one field (with BYTE datatype) that has several properties set in Lookup tab of table Design View. Display Control = Combo Box. Row Source...
6
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much...
3
by: tony bergstrom | last post by:
Ok, so I have a Form. It is a continuous form. In the header one selects what person to view data for. Once the person is selected, the travel information that has been budgeted for the year...
3
by: Mike S | last post by:
Anyone know how I can access a MS Access database from perl? Any help appreciated.
14
by: alwayshouston | last post by:
Hi All! I am working on this very small database and I am confused in the designing a simple form. I only have three tables in the database. First Table: tblExpense Columns: ExpenseID ;...
3
by: syounger | last post by:
Hi. I have a report in Access 2000 that is based on selection made from a series of interdependent list boxes. The boxes I have right now are Source, Table, Column, Date. The user chooses Source...
4
by: alexandre.brisebois | last post by:
Hi, I am using access 2003, I would like to know if there is an option to reorganize the tables in a maner that is readable, as we can do in sql sever 2000 or 2005. I have been given a database...
4
by: Rups | last post by:
I am using Ms Access to send email automatically through Lotus Notes. What I require now is that I have a List Box in my form which when loads,fills in the data's from the backend table. In the...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.