Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Imports System.Data
- Imports System.Data.OleDb
- Public Class Form1
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- Dim cnn As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=peliculas.mdb; User Id=admin;Password=;")
- Dim da As New OleDbDataAdapter("SELECT * FROM Peliculas", cnn)
- Dim ds As New DataSet
- da.Fill(ds)
- DataGridView1.DataSource = ds.Tables(0)
- End Sub
- End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement