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
rosy
NA
1
2.3k
How can we populate a combo box with data from database in 3 tier application in vb.net? please help....
Dec 27 2012 12:27 AM
I used this in my client server application. However we now have to convert it to 3 tier application. Can someone please help me. I need to populate the combo box from the data layer.
Private Sub loadStudents()
Dim DBConnection As New MySQLConn
DBConnection.connect()
Dim Query As String
Query= "SELECT StudentID FROM StudentTable"
Dim dreader As OleDbDataReader
dreader = DBConnection.selectQuery(query)
If dreader.HasRows Then
While dreader.Read
cmbStudID.Items.Add(dreader.Item(0))
End While
End If
End Sub
thanks...
Reply
Answers (
0
)
HOW BINARY FILE READ IN IMAGE FILE IN VB6.0