How to connect Ms Access to vb.net
4 posters
Page 1 of 1
How to connect Ms Access to vb.net
Imports System.Data.OleDb
Public Class Form1
Public connstring As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|datadirectory|\youtubeDbase.accdb;persist security info = false"
Public conn As New OleDbConnection
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
conn.ConnectionString = connstring
If conn.State = ConnectionState.Closed Then
conn.Open()
' MsgBox("open")
Else
MsgBox("Close")
End If
End Sub
End Class
Public Class Form1
Public connstring As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|datadirectory|\youtubeDbase.accdb;persist security info = false"
Public conn As New OleDbConnection
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
conn.ConnectionString = connstring
If conn.State = ConnectionState.Closed Then
conn.Open()
' MsgBox("open")
Else
MsgBox("Close")
End If
End Sub
End Class
putayputay- Newbie
- Posts : 10
Join date : 2013-03-09
Re: How to connect Ms Access to vb.net
Thank you for your sharing knowledge
dunchotambay- Newbie
- Posts : 1
Join date : 2013-08-12
Re: How to connect Ms Access to vb.net
i am not able to do that because it will give me the error to uninstallable isam what should i do?
rajamajid- Newbie
- Posts : 1
Join date : 2013-09-21
Re: How to connect Ms Access to vb.net
Hello sir, I'm only a beginner in VB. Can you please explain the code sir pls?
donbenary1- Newbie
- Posts : 2
Join date : 2013-11-17
Similar topics
» how to insert/add record in ms access using vb.net
» how to delete record in ms access using vb.net
» how to update record in ms access using vb.net
» how to view record in ms access using vb.net
» help me vb.net whent try record in access 2013
» how to delete record in ms access using vb.net
» how to update record in ms access using vb.net
» how to view record in ms access using vb.net
» help me vb.net whent try record in access 2013
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|