{"id":599,"date":"2010-09-20T19:23:03","date_gmt":"2010-09-20T18:23:03","guid":{"rendered":"http:\/\/www.venco.com.pl\/~cozy\/blog\/?p=599"},"modified":"2010-09-20T19:23:03","modified_gmt":"2010-09-20T18:23:03","slug":"visual-basic-2008-express-wczytanie-danych-z-bazy-accessa","status":"publish","type":"post","link":"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/2010\/09\/20\/visual-basic-2008-express-wczytanie-danych-z-bazy-accessa\/","title":{"rendered":"Visual Basic 2008 Express &#8211; wczytanie danych z bazy Accessa"},"content":{"rendered":"<p>Imports System.Data.OleDb<br \/>\nPublic Class Witaj<br \/>\nPrivate Sub Witaj_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br \/>\nDim con As OleDbConnection = New OleDbConnection(&#8222;Provider=Microsoft.jet.oledb.4.0;data source=d:\\home\\Dane\\Visual Studio 2008\\Projects\\Baza\\Baza\\Database.mdb&#8221;)<!--more--><br \/>\nDim Sql As String<br \/>\nSql = &#8222;SELECT Organisation.DivisionID, [IMIE] &amp; &#8217; &#8217; &amp; [Nazwisko] AS boss &#8221; &amp; _<br \/>\n&#8222;FROM Organisation INNER JOIN Users ON Organisation.UserID = Users.UserID &#8221; &amp; _<br \/>\n&#8222;WHERE (((Organisation.Level) = 0 Or (Organisation.Level) = 1)) &#8221; &amp; _<br \/>\n&#8222;ORDER BY Organisation.Level, Organisation.DivisionName;&#8221;<br \/>\nDim cmd As OleDbCommand = New OleDbCommand(Sql, con)<br \/>\ncon.Open()<br \/>\nDim myDA As OleDbDataAdapter = New OleDbDataAdapter(cmd)<br \/>\nDim myDataSet As DataSet = New DataSet()<br \/>\nmyDA.Fill(myDataSet, &#8222;Bosess&#8221;)<br \/>\nDataGridView1.DataSource = myDataSet.Tables(&#8222;Bosess&#8221;).DefaultView<br \/>\ncon.Close()<br \/>\ncon = Nothing<\/p>\n<p>End Sub<br \/>\nEnd Class<\/p>\n","protected":false},"excerpt":{"rendered":"<p class=\"excerpt\">Imports System.Data.OleDb Public Class Witaj Private Sub Witaj_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim con As OleDbConnection = New OleDbConnection(&#8222;Provider=Microsoft.jet.oledb.4.0;data source=d:\\home\\Dane\\Visual Studio 2008\\Projects\\Baza\\Baza\\Database.mdb&#8221;)<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/2010\/09\/20\/visual-basic-2008-express-wczytanie-danych-z-bazy-accessa\/\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[44,37,17,18],"class_list":["post-599","post","type-post","status-publish","format-standard","hentry","category-bez-kategorii","tag-access","tag-bazy-danych","tag-programowanie","tag-visal-basic"],"_links":{"self":[{"href":"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/wp-json\/wp\/v2\/posts\/599","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/wp-json\/wp\/v2\/comments?post=599"}],"version-history":[{"count":0,"href":"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/wp-json\/wp\/v2\/posts\/599\/revisions"}],"wp:attachment":[{"href":"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/wp-json\/wp\/v2\/media?parent=599"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/wp-json\/wp\/v2\/categories?post=599"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/wp-json\/wp\/v2\/tags?post=599"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}