how to connect vb.net with ms assess
Easy. Import System.Data.OLEDB, then connect with this code:
Dim sAccessConn AsString = "
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Northwind.mdb;Jet OLEDBDatabase Password=YourPasswordIfNeeded"
Dim oAccessConn As OleDbConnection = New OleDbConnection(sAccessConn)
Dim cmdAccess As New OleDbCommand("Select * from Whatever", oAccessConn)
Dim adoAccessReader As OleDbDataReader = cmdAccess.ExecuteReader
If adoAccessReader.HasRows Then
If oAccessConn.State = ConnectionState.Open Then
I´m not a professional in vb.net, but i try to make a tool for my colleague and me. I got a XMLTreeView on my form and i load a ...
Write a program, which will imitate an ATM machine. The program will ask for a password. Assume that only password 123456 is accepted. If the password is correct, display the ...
hai. anyone can help me ? I run my coding but it be invalid option even I already declare my coding. Can I know which part I wrong ?