Connect to a database
Connect to a database
Rate Connect to a database
(1(1 Vote))
strCNString = "Data Source=" & App.Path & "\dbname.mdb"
cn.Provider = "Microsoft Jet 4.0 OLE DB Provider"
cn.ConnectionString = strCNString
cn.Properties("Jet OLEDB:Database Password") = ""
cn.Open
If cn.State = adStateConnecting Then MsgBox "Connecting Data Source...."
If cn.State = adStateOpen Then MsgBox "Connection Successful."
'cn.Close
End Sub
Connect to a database Comments
No comments yet — be the first to post one!
Post a Comment