Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. con = New OleDb.OleDbConnection
  2. dbProvider = "Provider=Microsoft.Jet.OLEDB.4.0;"
  3. dbSource = "Data Source = C:UsersRedemptorisMaterDesktopSKWindowsApplication1WindowsApplication1bene_db.mdb"
  4.  
  5. con.ConnectionString = dbProvider & dbSource
  6.  
  7. If Not con.State = ConnectionState.Open Then
  8. con.Open()
  9. End If
  10.  
  11. Dim da As OleDb.OleDbDataAdapter
  12. Dim Sql As String
  13.  
  14.  
  15. Sql = "SELECT * FROM bene_records"
  16. da = New OleDb.OleDbDataAdapter(Sql, con)
  17.  
  18. Dim dt As New DataTable
  19. da.Fill(dt)
  20.  
  21. con.Close()
  22.  
  23. My.Computer.Audio.Play("C:UsersRedemptorisMaterDesktopSeminariansKentonWindowsApplication1WindowsApplication1bday1.wav",
  24. AudioPlayMode.Background)
  25.  
  26. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement