TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Administrator
Tech Writer
2.2k
1.5m
how to read only one field of a table
Feb 26 2003 7:03 AM
I have a database called HARPIA. In this database i have a table called GENERO, and in this table i have three fields (N_GENERO, GENERO, N_TRIBO). I would like to read only the values into the field N_GENERO and show its values in a Combobox called cboGenero. To do this i used the code below but its not so good. I have some problems with this code. There is anybody that can help me. Whats the correct code to use? thisAdapter = new OleDbDataAdapter( "SELECT n_genero FROM genero WHERE genero = '+ nomegenero'", dbBanco.thisConnection); thisBuilder = new OleDbCommandBuilder(thisAdapter); thisDataSet = new DataSet(); thisAdapter.Fill(thisDataSet,"genero"); cboGenero.text = thisDataSet.Tables ["genero"].Columns ["n_genero"]; }
Reply
Answers (
4
)
add <a href> tag to url
The correct use of a variable in a SQL QUERY