New 2
New 2
OleDb
Public Class MainForm
Dim connection As String
Dim connstring As String
Dim command As String
Dim myconnection As OleDbConnection = New OleDbConnection
Dim ds As New OleDbDataAdapter
Dim con As New OleDbConnection
Dim dt As New DataTable
Dim dr As OleDbDataReader
End Sub
End Sub
End Sub
End Sub
Else
myconnection.Close()
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
End If
End Sub
Conn()
connstring = connection
myconnection.ConnectionString = connstring
myconnection.Open()
myconnection.Close()
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
End If
End Sub
myconnection.Close()
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
End If
End Sub