HI
can some one Help in my graduation project
im making database access connection this is my class
___________________________
Imports System.Data.OleDb
Public Class DataBaseConn
Dim conn As New OleDbConnection
Dim comm As New OleDbCommand
Dim s As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\G-project Crab\GP\GP\Database1-2.mdb"
Sub adconn()
conn.ConnectionString = s
conn.Open()
End Sub
Sub adcomm(ByVal t As String)
adconn()
comm.Connection = conn
comm.CommandText = t
End Sub
Function seldb(ByVal t As String) As OleDbDataReader
adcomm(t)
Dim dr As OleDbDataReader
dr = comm.ExecuteReader
Return dr
End Function
Sub moddb(ByVal t As String)
adcomm(t)
comm.ExecuteNonQuery()
End Sub
End Class
____________________
See the Code in red i want to select the source of the database from another Form that had a textbox contain the path of the database that been selected from i file dialoge my main issue is i dont know how to transfer data between Form and class
Thnx