Experts Exchange connects you with the people and services you need so you can get back to work.
Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.
'CONNECT THE DATA MODULE TABPAGE-DATAGRIDVIEWS TO THE SQL DATA MODULE TABLES
Dim dbadp As New SqlDataAdapter("USE " & DBName & ";SELECT * FROM " & "dbo." & moduletableCB.Text, Conn2)
Dim dTable As New DataTable
dg2.Name = Me.moduletableCB.Text
dg2.Location = New Point(20, 20)
dg2.DataSource = dTable
'CLOSE THE SQL CONNECTION
If Conn.State = ConnectionState.Open Then
If Conn2.State = ConnectionState.Open Then
Open in new window
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.