{"id":2444,"date":"2014-12-22T22:52:23","date_gmt":"2014-12-22T22:52:23","guid":{"rendered":"https:\/\/alt2.minisoft.com\/support\/?p=2444"},"modified":"2017-01-29T23:11:40","modified_gmt":"2017-01-29T23:11:40","slug":"using-data-access-objects-dao-ms-visual-basic-with-minisofts-odbc-driver","status":"publish","type":"post","link":"https:\/\/c002.minisoft.com\/support\/using-data-access-objects-dao-ms-visual-basic-with-minisofts-odbc-driver\/","title":{"rendered":"Using Data Access Objects (DAO) MS Visual Basic with Minisoft&#8217;s ODBC Driver"},"content":{"rendered":"<p><strong>Getting Started<\/strong><\/p>\n<p>Create a new blank project:<\/p>\n<ol>\n<li>Place a &#8216;Data&#8217; object on your form.<a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2014\/12\/odbc_u051.gif\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-2445\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2014\/12\/odbc_u051.gif\" alt=\"odbc_u05\" width=\"380\" height=\"181\" \/><\/a><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li value=\"2\"><span style=\"color: #000000;\">In the &#8216;Connect&#8217; property, type the string &#8220;ODBC;DSN=<em>datasource<\/em>&#8221; (without quotes). Replace <em>datasource<\/em> with the datasource name you entered for the connection created in the 32bit ODBC Administrator.<\/span><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2014\/12\/msvb2.gif\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-2446\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2014\/12\/msvb2.gif\" alt=\"msvb2\" width=\"335\" height=\"316\" \/><\/a><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li value=\"3\">Go to the &#8216;RecordSource&#8217; property and click on the dropdown arrow.<a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2014\/12\/ODBC_f03.gif\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-2447\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2014\/12\/ODBC_f03.gif\" alt=\"ODBC_f03\" width=\"335\" height=\"157\" \/><\/a><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li value=\"4\">After a few moments, a list of datasets will appear. Select one.<a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2014\/12\/ODBC_f04.gif\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-2448\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2014\/12\/ODBC_f04.gif\" alt=\"ODBC_f04\" width=\"335\" height=\"157\" \/><\/a><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li value=\"5\">Add a TextBox to your form.<a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2014\/12\/ODBC_f05.gif\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-2449\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2014\/12\/ODBC_f05.gif\" alt=\"ODBC_f05\" width=\"380\" height=\"181\" \/><\/a><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li value=\"6\">The DataSource dropdown list has the name of the Data object you added earlier. Select it.<a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2014\/12\/ODBC_f06.gif\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-2450\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2014\/12\/ODBC_f06.gif\" alt=\"ODBC_f06\" width=\"336\" height=\"157\" \/><\/a><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li value=\"7\">The DataField dropdown box will now have the fields available in the dataset you selected. Select one.<a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2014\/12\/ODBC_f07.gif\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-2451\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2014\/12\/ODBC_f07.gif\" alt=\"ODBC_f07\" width=\"336\" height=\"184\" \/><\/a><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li value=\"8\">Run the application.<\/li>\n<li>The TextBox contains the value of the field you selected from the first record in the dataset. Use the left and right arrows to scroll through the data. You can add other fields as additional text boxes.<a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2014\/12\/ODBC_f09.gif\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-2452\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2014\/12\/ODBC_f09.gif\" alt=\"ODBC_f09\" width=\"380\" height=\"181\" \/><\/a><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Getting Started Create a new blank project: Place a &#8216;Data&#8217; object on your form. &nbsp; In the &#8216;Connect&#8217; property, type the string &#8220;ODBC;DSN=datasource&#8221; (without quotes). Replace datasource with the datasource name you entered for the connection created in the 32bit ODBC Administrator. &nbsp; Go to the &#8216;RecordSource&#8217; property and click on the dropdown arrow. &nbsp; [&hellip;]<\/p>\n","protected":false},"author":75,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[54,63],"tags":[],"_links":{"self":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/2444"}],"collection":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/users\/75"}],"replies":[{"embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/comments?post=2444"}],"version-history":[{"count":2,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/2444\/revisions"}],"predecessor-version":[{"id":4505,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/2444\/revisions\/4505"}],"wp:attachment":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/media?parent=2444"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/categories?post=2444"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/tags?post=2444"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}