{"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":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.9 - aioseo.com -->\n\t<meta name=\"description\" content=\"Read data from an Microsoft Access Database via an ASP page and present results and run various queries on thoose results.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"paris\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/pariswells.com\/blog\/code\/asp-code-to-read-from-a-mdb-access-file\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.9\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Welcome to Pariswells.com |\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"ASP Code to Read from a .mdb access file | Welcome to Pariswells.com\" \/>\n\t\t<meta property=\"og:description\" content=\"Read data from an Microsoft Access Database via an ASP page and present results and run various queries on thoose results.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/pariswells.com\/blog\/code\/asp-code-to-read-from-a-mdb-access-file\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2011-08-04T10:35:42+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2011-08-04T10:35:42+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"ASP Code to Read from a .mdb access file | Welcome to Pariswells.com\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Read data from an Microsoft Access Database via an ASP page and present results and run various queries on thoose results.\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/code\\\/asp-code-to-read-from-a-mdb-access-file#article\",\"name\":\"ASP Code to Read from a .mdb access file | Welcome to Pariswells.com\",\"headline\":\"ASP Code to Read from a .mdb access file\",\"author\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/wp-content\\\/uploads\\\/2011\\\/08\\\/ASP.jpg\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/code\\\/asp-code-to-read-from-a-mdb-access-file\\\/#articleImage\",\"width\":256,\"height\":256},\"datePublished\":\"2011-08-04T10:35:42+00:00\",\"dateModified\":\"2011-08-04T10:35:42+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/code\\\/asp-code-to-read-from-a-mdb-access-file#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/code\\\/asp-code-to-read-from-a-mdb-access-file#webpage\"},\"articleSection\":\"Code, ASP Code to Read from a .mdb access file, Inner Join Asp, mdb asp lookup, query mbd with asp\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/code\\\/asp-code-to-read-from-a-mdb-access-file#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/pariswells.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/code#listItem\",\"name\":\"Code\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/code#listItem\",\"position\":2,\"name\":\"Code\",\"item\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/code\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/code\\\/asp-code-to-read-from-a-mdb-access-file#listItem\",\"name\":\"ASP Code to Read from a .mdb access file\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/code\\\/asp-code-to-read-from-a-mdb-access-file#listItem\",\"position\":3,\"name\":\"ASP Code to Read from a .mdb access file\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/code#listItem\",\"name\":\"Code\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#organization\",\"name\":\"Welcome to Pariswells.com\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris\",\"name\":\"paris\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/code\\\/asp-code-to-read-from-a-mdb-access-file#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/93b8ee3f592ac401167f870452bd82d43de80152cd3524e2853403658ada9984?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"paris\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/code\\\/asp-code-to-read-from-a-mdb-access-file#webpage\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/code\\\/asp-code-to-read-from-a-mdb-access-file\",\"name\":\"ASP Code to Read from a .mdb access file | Welcome to Pariswells.com\",\"description\":\"Read data from an Microsoft Access Database via an ASP page and present results and run various queries on thoose results.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/code\\\/asp-code-to-read-from-a-mdb-access-file#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\"},\"datePublished\":\"2011-08-04T10:35:42+00:00\",\"dateModified\":\"2011-08-04T10:35:42+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/\",\"name\":\"Welcome to Pariswells.com\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"ASP Code to Read from a .mdb access file | Welcome to Pariswells.com","description":"Read data from an Microsoft Access Database via an ASP page and present results and run various queries on thoose results.","canonical_url":"https:\/\/pariswells.com\/blog\/code\/asp-code-to-read-from-a-mdb-access-file","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pariswells.com\/blog\/code\/asp-code-to-read-from-a-mdb-access-file#article","name":"ASP Code to Read from a .mdb access file | Welcome to Pariswells.com","headline":"ASP Code to Read from a .mdb access file","author":{"@id":"https:\/\/pariswells.com\/blog\/author\/paris#author"},"publisher":{"@id":"https:\/\/pariswells.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2011\/08\/ASP.jpg","@id":"https:\/\/pariswells.com\/blog\/code\/asp-code-to-read-from-a-mdb-access-file\/#articleImage","width":256,"height":256},"datePublished":"2011-08-04T10:35:42+00:00","dateModified":"2011-08-04T10:35:42+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/pariswells.com\/blog\/code\/asp-code-to-read-from-a-mdb-access-file#webpage"},"isPartOf":{"@id":"https:\/\/pariswells.com\/blog\/code\/asp-code-to-read-from-a-mdb-access-file#webpage"},"articleSection":"Code, ASP Code to Read from a .mdb access file, Inner Join Asp, mdb asp lookup, query mbd with asp"},{"@type":"BreadcrumbList","@id":"https:\/\/pariswells.com\/blog\/code\/asp-code-to-read-from-a-mdb-access-file#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/pariswells.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/category\/code#listItem","name":"Code"}},{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/category\/code#listItem","position":2,"name":"Code","item":"https:\/\/pariswells.com\/blog\/category\/code","nextItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/code\/asp-code-to-read-from-a-mdb-access-file#listItem","name":"ASP Code to Read from a .mdb access file"},"previousItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/code\/asp-code-to-read-from-a-mdb-access-file#listItem","position":3,"name":"ASP Code to Read from a .mdb access file","previousItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/category\/code#listItem","name":"Code"}}]},{"@type":"Organization","@id":"https:\/\/pariswells.com\/blog\/#organization","name":"Welcome to Pariswells.com","url":"https:\/\/pariswells.com\/blog\/"},{"@type":"Person","@id":"https:\/\/pariswells.com\/blog\/author\/paris#author","url":"https:\/\/pariswells.com\/blog\/author\/paris","name":"paris","image":{"@type":"ImageObject","@id":"https:\/\/pariswells.com\/blog\/code\/asp-code-to-read-from-a-mdb-access-file#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/93b8ee3f592ac401167f870452bd82d43de80152cd3524e2853403658ada9984?s=96&d=mm&r=g","width":96,"height":96,"caption":"paris"}},{"@type":"WebPage","@id":"https:\/\/pariswells.com\/blog\/code\/asp-code-to-read-from-a-mdb-access-file#webpage","url":"https:\/\/pariswells.com\/blog\/code\/asp-code-to-read-from-a-mdb-access-file","name":"ASP Code to Read from a .mdb access file | Welcome to Pariswells.com","description":"Read data from an Microsoft Access Database via an ASP page and present results and run various queries on thoose results.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/pariswells.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/pariswells.com\/blog\/code\/asp-code-to-read-from-a-mdb-access-file#breadcrumblist"},"author":{"@id":"https:\/\/pariswells.com\/blog\/author\/paris#author"},"creator":{"@id":"https:\/\/pariswells.com\/blog\/author\/paris#author"},"datePublished":"2011-08-04T10:35:42+00:00","dateModified":"2011-08-04T10:35:42+00:00"},{"@type":"WebSite","@id":"https:\/\/pariswells.com\/blog\/#website","url":"https:\/\/pariswells.com\/blog\/","name":"Welcome to Pariswells.com","inLanguage":"en-US","publisher":{"@id":"https:\/\/pariswells.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Welcome to Pariswells.com |","og:type":"article","og:title":"ASP Code to Read from a .mdb access file | Welcome to Pariswells.com","og:description":"Read data from an Microsoft Access Database via an ASP page and present results and run various queries on thoose results.","og:url":"https:\/\/pariswells.com\/blog\/code\/asp-code-to-read-from-a-mdb-access-file","article:published_time":"2011-08-04T10:35:42+00:00","article:modified_time":"2011-08-04T10:35:42+00:00","twitter:card":"summary","twitter:title":"ASP Code to Read from a .mdb access file | Welcome to Pariswells.com","twitter:description":"Read data from an Microsoft Access Database via an ASP page and present results and run various queries on thoose results."},"aioseo_meta_data":{"post_id":"743","title":"ASP Code to Read from a .mdb access file | #site_title","description":"Read data from an Microsoft Access Database via an ASP page and present results and run various queries on thoose results.","keywords":null,"keyphrases":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2020-12-21 05:30:03","updated":"2022-09-17 16:15:25","primary_term":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/pariswells.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/pariswells.com\/blog\/category\/code\" title=\"Code\">Code<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tASP Code to Read from a .mdb access file\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/pariswells.com\/blog"},{"label":"Code","link":"https:\/\/pariswells.com\/blog\/category\/code"},{"label":"ASP Code to Read from a .mdb access file","link":"https:\/\/pariswells.com\/blog\/code\/asp-code-to-read-from-a-mdb-access-file"}],"_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}]}}