Const DATABASE_FILE As String = "D:\db\spare\data.mdb;JET OLEDB:Database password=11111"
Dim strConnection As String = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & DATABASE_FILE
ม่ายรุ้ว่าใช่สิ่งที่คุณต้องการป่าวนะ
Date :
2009-08-11 14:19:08
By :
tonhoy
No. 2
Guest
Code VB.NET Create Connection to Access 2007
Dim provide As String = "Provider=Microsoft.ACE.OLEDB.12.0"
Dim source As String = "Data Source='C:\Projects\dbFile.accdb'"
Dim pass As String = "Jet OLEDB:Database Password='xxxxxx'"
Public conn As New OleDbConnection(provide + ";" + source + ";" + pass)