{"id":743,"date":"2011-08-04T10:35:42","date_gmt":"2011-08-04T10:35:42","guid":{"rendered":"http:\/\/pariswells.com\/blog\/?p=743"},"modified":"2011-08-04T10:35:42","modified_gmt":"2011-08-04T10:35:42","slug":"asp-code-to-read-from-a-mdb-access-file","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/code\/asp-code-to-read-from-a-mdb-access-file","title":{"rendered":"ASP Code to Read from a .mdb access file"},"content":{"rendered":"\r\n<p><a href=\"http:\/\/pariswells.com\/blog\/wp-content\/uploads\/2011\/08\/ASP.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-745 img-responsive\" title=\"ASP\" src=\"http:\/\/pariswells.com\/blog\/wp-content\/uploads\/2011\/08\/ASP-150x150.jpg\" alt=\"\" width=\"150\" height=\"150\" srcset=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2011\/08\/ASP-150x150.jpg 150w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2011\/08\/ASP.jpg 256w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a>Recently a collegue contacted me for some help with his university degree. The project was to create a website that was backed by a database. My background is mainly PHP and MySQL however, the course had been teaching them how to manipulate an MDB Access Database file using ASP. The outline of the task was a document management system for projects.<\/p>\r\n<ul>\r\n\t<li>A user would enter their unique company number into a page<\/li>\r\n\t<li>It would list available projects for that company<\/li>\r\n\t<li>User would select the project and login with a username and password<\/li>\r\n\t<li>The website would list all files which he had permission to access<\/li>\r\n<\/ul>\r\n<p>The tutorials the lecturer had given out used dreamweaver to create the ADODB.Connection , however it seemed an over complicated way of doing it. After a bit of online research my first ASP project is below ( Could be better but only had an evening to do it! )<\/p>\r\n<p><strong>index.asp<\/strong><\/p>\r\n<p style=\"padding-left: 30px;\">code here : <a href=\"http:\/\/pastebin.com\/7s739FKa\">http:\/\/pastebin.com\/7s739FKa<\/a><\/p>\r\n<p style=\"padding-left: 30px;\">This code manages the Company ID input then list the projects from that company<\/p>\r\n<p><strong>login.asp<\/strong><\/p>\r\n<p style=\"padding-left: 30px;\">Takes the project ID from index.asp and checks the permissions table after username and password verficiation for files they have access to<\/p>\r\n<p style=\"padding-left: 30px;\">code here\u00a0 : <a href=\"http:\/\/pastebin.com\/BmNiXZgz\">http:\/\/pastebin.com\/BmNiXZgz<\/a><\/p>\r\n<p><strong>db.mdb<\/strong><\/p>\r\n<p style=\"padding-left: 30px;\">File here : <a href=\"http:\/\/pastebin.com\/BmNiXZgz\">http:\/\/www.pariswells.com\/upload\/db.mdb<\/a><\/p>\r\n<p style=\"padding-left: 30px;\">4 Tables<\/p>\r\n<p style=\"padding-left: 30px;\">Users -&gt; Username , Password and ID<\/p>\r\n<p style=\"padding-left: 30px;\">Projects -&gt; Project Name , Company ID Associated with that Project and Project ID<\/p>\r\n<p style=\"padding-left: 30px;\">Permissions -&gt; FileID and UserID<\/p>\r\n<p style=\"padding-left: 30px;\">Company -&gt; Company Name , Company Number and ID<\/p>\r\n<p>&nbsp;<\/p>\r\n<p>Definitely prefer PHP to ASP!<\/p>\r\n<p style=\"padding-left: 30px;\"><\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Recently a collegue contacted me for some help with his university degree. The project was to create a website that was backed by a database. My background [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[320],"tags":[433,431,430,432],"class_list":["post-743","post","type-post","status-publish","format-standard","hentry","category-code","tag-asp-code-to-read-from-a-mdb-access-file","tag-inner-join-asp","tag-mdb-asp-lookup","tag-query-mbd-with-asp"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/743","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=743"}],"version-history":[{"count":1,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/743\/revisions"}],"predecessor-version":[{"id":746,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/743\/revisions\/746"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=743"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=743"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=743"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}