<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;CE8ESXwyeCp7ImA9WxBQFEo.&quot;"><id>tag:blogger.com,1999:blog-1750370268732628643</id><updated>2010-01-14T22:40:08.290+10:00</updated><title>Microsoft Access Tutorial</title><subtitle type="html">&lt;br&gt;Microsoft Access Tutorial|Microsoft Access Help|Microsoft Access Tips|Microsoft Access Sample Databases&lt;br&gt;&lt;br&gt;&lt;i&gt;Posting regular Microsoft Access tutorials and tips. Learn how to create and maintain an Access Database.&lt;/i&gt;</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://www.microsoft-access-tutorial.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://www.microsoft-access-tutorial.com/" /><author><name>aj</name><email>noreply@blogger.com</email></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/MicrosoftAccessTutorial" /><feedburner:info uri="microsoftaccesstutorial" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;AkIARHk4eCp7ImA9WxRbGU8.&quot;"><id>tag:blogger.com,1999:blog-1750370268732628643.post-9143645547530750349</id><published>2008-07-27T13:41:00.009+10:00</published><updated>2008-12-11T03:02:25.730+10:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-12-11T03:02:25.730+10:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="one to many" /><category scheme="http://www.blogger.com/atom/ns#" term="theory" /><category scheme="http://www.blogger.com/atom/ns#" term="entity" /><category scheme="http://www.blogger.com/atom/ns#" term="fields" /><category scheme="http://www.blogger.com/atom/ns#" term="many to many" /><category scheme="http://www.blogger.com/atom/ns#" term="access" /><category scheme="http://www.blogger.com/atom/ns#" term="tutorial" /><category scheme="http://www.blogger.com/atom/ns#" term="design" /><category scheme="http://www.blogger.com/atom/ns#" term="attribute" /><category scheme="http://www.blogger.com/atom/ns#" term="database" /><category scheme="http://www.blogger.com/atom/ns#" term="tables" /><title>Microsoft Access Tutorial - Defining the Scope of your Database (part 2)</title><content type="html">In this &lt;span style="font-weight:bold;"&gt;Microsoft Access Tutorial&lt;/span&gt;, we will be finalising the theoretical structure of our fictitious database. At the end of this tutorial, we will have a complete structure in place. In my next post we will be (finally) opening up Microsoft Access to begin building our tables and the relationships between them. &lt;br /&gt;&lt;br /&gt;These tutorials are very linear in nature, and I urge any first time visitors who are interested in learning how to develop a database in Microsoft Access, to go back to the first post and work your way forward. I have provided a listing of all the tutorials so far in the sidebar on the right to make this easier for you. Don't forget, if you have any questions, I will be more than happy to answer them along the way. You can post a comment at the end of each tutorial, or email me at &lt;a href="mailto:microsoftaccesstutorials@gmail.com"&gt;microsoftaccesstutorials@gmail.com&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;So, in our last tutorial we started defining the scope of our database. We went for a virtual tour through the Bobbles 'R' Us store, and asked Bob, the manager, questions along the way. At the end of that tutorial we had three entities (Bobbles, Customers and Staff) and one interaction (Customer Notes) listed, along with attributes for each item. After working your way through this tour, you should have a fair idea of the process behind creating these lists, so I'm not going to bore you with this process any more. At the end of our interview with Bob, the new entities and interactions we have found are as follows...&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Sales&lt;/span&gt;&lt;br /&gt;Customer&lt;br /&gt;Staff&lt;br /&gt;Date&lt;br /&gt;Total Amount Payable&lt;br /&gt;Payment Method&lt;br /&gt;&lt;br /&gt;The Sales table is actually a three way interaction between customer, staff and product (bobble). However, a sale may consist of more than one bobble, which leaves us with a similar problem that we had when creating our Customer Notes table. The solution is also the same, we split the table into two, one that stores the general information about the sale (above), and the details of each sale item, as follows...&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Sale Details&lt;/span&gt;&lt;br /&gt;Bobble&lt;br /&gt;QTY&lt;br /&gt;Price&lt;br /&gt;Discount&lt;br /&gt;Sale Price&lt;br /&gt;&lt;br /&gt;Then we have Suppliers and purchasing information that Bob also wants to track in the database...&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Suppliers&lt;/span&gt;&lt;br /&gt;Supplier Name &lt;br /&gt;Street Number&lt;br /&gt;Street Name&lt;br /&gt;Suburb&lt;br /&gt;State&lt;br /&gt;Zip Code (Postcode)&lt;br /&gt;Country&lt;br /&gt;Phone&lt;br /&gt;Email&lt;br /&gt;Website&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Purchases&lt;/span&gt;&lt;br /&gt;Supplier&lt;br /&gt;Date&lt;br /&gt;Invoice #&lt;br /&gt;&lt;br /&gt;The setup for the Purchases is similar to the Sales table, as it will probably be multiple items (bobbles) that are being delivered to the store. So once again, we split this table in two&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Purchase Details&lt;/span&gt;&lt;br /&gt;Bobble&lt;br /&gt;QTY&lt;br /&gt;Price&lt;br /&gt;Discount&lt;br /&gt;Purchase Price&lt;br /&gt;&lt;br /&gt;Now we have a complete list of entities and interactions for our database. To recap, they are...&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-weight:bold;"&gt;Bobbles&lt;br /&gt;Customers&lt;br /&gt;Staff&lt;br /&gt;Customer Notes&lt;br /&gt;Sales&lt;br /&gt;Sales Details&lt;br /&gt;Suppliers&lt;br /&gt;Purchases&lt;br /&gt;Purchase Details&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;The next step is to graphically represent the relationships between each of these items. You can do this "old school" by writing each item on a separate piece of paper, and then shuffling them around on your desk until they look just right, or you can use a multitude of computer software and online tools to create the same effect. The diagram shown below was created using a great free online tool called &lt;a href="http://www.bubbl.us"&gt;bubbl.us&lt;/a&gt;. The end result is called an "entity relationship daigram", and in high end databases, these can become quite a tangled web of links. In our situation, the end result is fairly simplistic...&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.microsoft-access-tutorial.com/"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://4.bp.blogspot.com/_YLdWzP6TFcM/SIvvY-UjWlI/AAAAAAAAAUE/gmkFybEG1qY/s400/bobbleserd.jpg" border="0" alt="Microsoft Access Tutorial - Entity Relationship Diagram (ERD)"id="BLOGGER_PHOTO_ID_5227535004818692690" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The direction the arrows point is important in this diagram, as they specify "One to Many" relationships. For example, a customer may have more than one sale, but each sale only relates to the one customer. In some circumstances you may come across a "Many to Many" relationship. For example, the link between Suppliers and Bobbles. If we are to record a list of Bobbles that each Supplier supplies, the direct relationship between Bobbles and Suppliers would be "Many to Many". That is, a supplier supplies more than one type of bobble, and each type of bobble can be supplied by more than one supplier. To fix this issue, we create a linking table called "Supplied Bobbles". This table simply stores a link to the Supplier and a link to the Bobble, like this...&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.microsoft-access-tutorial.com/"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://3.bp.blogspot.com/_YLdWzP6TFcM/SIvv5_kan1I/AAAAAAAAAUM/XRRNSvivxUw/s400/supplied+bobbles.jpg" border="0" alt="Microsoft Access Tutorial - Many to Many Relationship"id="BLOGGER_PHOTO_ID_5227535572089347922" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;We now have a complete understanding of the structure of our database, and we are going to leave Bob and his store, go back to our computer, and start creating our table structures based around this information, in our next Microsoft Access Tutorial. Stay tuned.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1750370268732628643-9143645547530750349?l=www.microsoft-access-tutorial.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/3I62FPZL8hiS-X7clfAZT6UMExc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/3I62FPZL8hiS-X7clfAZT6UMExc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/3I62FPZL8hiS-X7clfAZT6UMExc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/3I62FPZL8hiS-X7clfAZT6UMExc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?a=UCf2FKas"&gt;&lt;img src="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?a=gis207IK"&gt;&lt;img src="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?i=gis207IK" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?a=zb8HyhoA"&gt;&lt;img src="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?i=zb8HyhoA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?a=OD0d6ZPG"&gt;&lt;img src="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?d=50" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/MicrosoftAccessTutorial/~4/qwVeC5n75jc" height="1" width="1"/&gt;</content><link rel="related" href="http://www.microsoft-access-tutorial.com/" title="Microsoft Access Tutorial - Defining the Scope of your Database (part 2)" /><link rel="replies" type="application/atom+xml" href="http://www.microsoft-access-tutorial.com/feeds/9143645547530750349/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=1750370268732628643&amp;postID=9143645547530750349&amp;isPopup=true" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1750370268732628643/posts/default/9143645547530750349?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1750370268732628643/posts/default/9143645547530750349?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/MicrosoftAccessTutorial/~3/qwVeC5n75jc/microsoft-access-tutorial-defining_27.html" title="Microsoft Access Tutorial - Defining the Scope of your Database (part 2)" /><author><name>aj</name><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="03938629441417997958" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_YLdWzP6TFcM/SIvvY-UjWlI/AAAAAAAAAUE/gmkFybEG1qY/s72-c/bobbleserd.jpg" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><feedburner:origLink>http://www.microsoft-access-tutorial.com/2008/07/microsoft-access-tutorial-defining_27.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEcFQ30-fip7ImA9WxdVEEQ.&quot;"><id>tag:blogger.com,1999:blog-1750370268732628643.post-8061039327287537009</id><published>2008-07-15T14:12:00.003+10:00</published><updated>2008-07-15T14:26:52.356+10:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-07-15T14:26:52.356+10:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="theory" /><category scheme="http://www.blogger.com/atom/ns#" term="entity" /><category scheme="http://www.blogger.com/atom/ns#" term="fields" /><category scheme="http://www.blogger.com/atom/ns#" term="access" /><category scheme="http://www.blogger.com/atom/ns#" term="tutorial" /><category scheme="http://www.blogger.com/atom/ns#" term="design" /><category scheme="http://www.blogger.com/atom/ns#" term="attribute" /><category scheme="http://www.blogger.com/atom/ns#" term="database" /><category scheme="http://www.blogger.com/atom/ns#" term="tables" /><title>Microsoft Access Tutorial - Defining the Scope of your Database</title><content type="html">If you have been following these &lt;span style="font-weight:bold;"&gt;Microsoft Access Tutorials&lt;/span&gt;, you should now know how to create a database file, and have a broad understanding of good database design as it relates to table structure within Microsoft Access. We are now going to look at the theoretical design of the database that we will be working with throughout the rest of this tutorial.&lt;br /&gt;&lt;br /&gt;Bobbles 'R' Us is the name of our fictitious company, and as you may have guessed from their name, they primarily deal in Bobbles. What are Bobbles, I hear you ask? Well, for the purposes of this tutorial, it doesn't really matter, you can imagine them however you wish, but suffice it to say they are in hot demand right now, and Bobbles 'R' Us desperately needs a database to track their business dealings.&lt;br /&gt;&lt;br /&gt;So we set up an interview with Bob, the general manager, to start figuring out what the scope of this database will be. This is one of the most important stages of database development, and if you are serious about creating a usable application that  your client / end user will be pleased with, then you need to put in the face time up front to determine what your client needs are. &lt;br /&gt;&lt;br /&gt;The first thing you should do is get the person (or people) you are interviewing to walk you through their business, physically if possible, while you make a list of all the entities and interactions you can see (if you don't understand what I mean by entities and interactions, you need to read my post on &lt;a href="http://www.microsoft-access-tutorial.com/2008/07/microsoft-access-tutorial-database_05.html"&gt;Database Design - Table Structure&lt;/a&gt;). For each item on this list, you need to also list all the attributes you can find relating to that item. A good way to do this is to pretend you are explaining this item to someone who has never seen it or heard of it before.&lt;br /&gt;&lt;br /&gt;So Bob takes us for a walk through the Bobbles 'R' Us store, and we come across a shelf full of Bobbles. You write "Bobbles" on your list. You notice that not all these Bobbles are the same, there are blue ones, red ones, green ones and yellow ones. You also notice that they vary in size and shape as well. This shelf actually has many many different types of Bobbles, there are big yellow square ones, little red triangular ones, medium sized blue round ones, and more. They also seem to range in price. So, next to the entity Bobble on your list, you write "Size", "Shape", "Color" and "Price". These are all attributes of a Bobble that seem to vary from one to the next. Then you turn to Bob and say "Bob, these Bobbles are different sizes, shapes, colors and prices. Is there anything else that makes these Bobbles different from one to the next?" and Bob says "Yes, the ones on the top shelf are made from a stronger type of plastic than the ones below, each one has it's own serial number, and some of them come from different suppliers". So you write "Material", "Serial #" and "Supplier" as other attributes for these Bobbles.&lt;br /&gt;&lt;br /&gt;Now, I hope you don't think I'm being too patronizing in explaining these attributes to you, it may seem straight forward, but the more information you can gather at the beginning of your database development, the easier your job is going to be in the long term. The aim of the game is to break everything down into the smallest parts possible.&lt;br /&gt;&lt;br /&gt;So after looking at the shelf full of Bobbles, we end up with the following list...&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-weight:bold;"&gt;Bobbles&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Size&lt;br /&gt;Shape&lt;br /&gt;Color&lt;br /&gt;Price&lt;br /&gt;Material&lt;br /&gt;Serial #&lt;br /&gt;Supplier&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;The next entity we notice is a customer. To describe a customer to someone who has never seen one before could be quite a task. We have eye color, shoe size, marital status, musical preferences, age and on and on. But it's fairly obvious that a lot of this information is not going to end up in our database, we need to ask Bob exactly what he wants to track about his customers. "Well" he says "we really want to be able to send newsletters out to them, so for that we would need an address". At this point I mention that once your customers are in a database, you could also email the newsletters to them, saving on postage and printing costs. "I also want to be able to phone them to let them know when their order has come in, and I want to keep a track of any communications my staff have had with them in the past, is that possible?" We assure him that it is, and we end up with the following list...&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-weight:bold;"&gt;Customer&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;First Name&lt;br /&gt;Surname&lt;br /&gt;Address&lt;br /&gt;Email&lt;br /&gt;Phone&lt;br /&gt;Notes&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Keep in mind that these attributes need to be broken down as small as possible. In my last post, I mentioned that address is actually made up of several parts. We also have an issue with the notes field, as Bob wants a historical record of what was said, when it was said, and who said it, which means multiple notes for each customer, date and time stamped. In this situation, what do we do? We could say that there would never be any more than 100 communications with a customer, and have it set out like this...&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;Date 1&lt;br /&gt;Staff 1&lt;br /&gt;Note 1&lt;br /&gt;Date 2&lt;br /&gt;Staff 2&lt;br /&gt;Note 2&lt;br /&gt;Date 3&lt;br /&gt;Staff 3&lt;br /&gt;Note 3&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;...and so on up to 100, but that would be extremely messy. The proper way to handle this is to regard your notes as a separate interaction between staff and customers. So our modified Customer entity now looks like this...&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-weight:bold;"&gt;Customer&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; First Name&lt;br /&gt; Surname&lt;br /&gt; Street Number&lt;br /&gt; Street Name&lt;br /&gt; Suburb&lt;br /&gt; State&lt;br /&gt; Zip Code (Postcode)&lt;br /&gt; Country&lt;br /&gt; Email&lt;br /&gt; Phone&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;and we also have a new interaction that looks like this...&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-weight:bold;"&gt;Notes&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Staff&lt;br /&gt;Customer&lt;br /&gt;Date&lt;br /&gt;Note&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;That's probably enough for you to digest today. We will continue our tour through the shop with Bob next time. I know that this may seem tedious, but I cannot stress enough how important it is that you get this right before dirtying your hands in &lt;span style="font-weight:bold;"&gt;Microsoft Access&lt;/span&gt;. It makes it so much easier to physically design a good database if your brain has a handle on the big picture. As a database developer, you will have to learn the ins and outs of each business you design a system for, it's an interesting process and it keeps you on your toes. Stay tuned, the next &lt;span style="font-weight:bold;"&gt;Microsoft Access Tutorial&lt;/span&gt; will not be far away.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1750370268732628643-8061039327287537009?l=www.microsoft-access-tutorial.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/BdvRBhC_YiaAseQAA-EoTdM1WgU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/BdvRBhC_YiaAseQAA-EoTdM1WgU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/BdvRBhC_YiaAseQAA-EoTdM1WgU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/BdvRBhC_YiaAseQAA-EoTdM1WgU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?a=hO1rZ3aZ"&gt;&lt;img src="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?a=YWkVrYwW"&gt;&lt;img src="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?i=YWkVrYwW" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?a=TQyj0COg"&gt;&lt;img src="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?i=TQyj0COg" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?a=CDi7ICrK"&gt;&lt;img src="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?d=50" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/MicrosoftAccessTutorial/~4/geJQ7Jv2m-g" height="1" width="1"/&gt;</content><link rel="related" href="http://www.microsoft-access-tutorial.com/" title="Microsoft Access Tutorial - Defining the Scope of your Database" /><link rel="replies" type="application/atom+xml" href="http://www.microsoft-access-tutorial.com/feeds/8061039327287537009/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=1750370268732628643&amp;postID=8061039327287537009&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1750370268732628643/posts/default/8061039327287537009?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1750370268732628643/posts/default/8061039327287537009?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/MicrosoftAccessTutorial/~3/geJQ7Jv2m-g/microsoft-access-tutorial-defining.html" title="Microsoft Access Tutorial - Defining the Scope of your Database" /><author><name>aj</name><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="03938629441417997958" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.microsoft-access-tutorial.com/2008/07/microsoft-access-tutorial-defining.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkIAR3s6fyp7ImA9WxRbGU8.&quot;"><id>tag:blogger.com,1999:blog-1750370268732628643.post-7609511421877647728</id><published>2008-07-05T13:45:00.010+10:00</published><updated>2008-12-11T03:02:26.517+10:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-12-11T03:02:26.517+10:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="foreign key" /><category scheme="http://www.blogger.com/atom/ns#" term="fields" /><category scheme="http://www.blogger.com/atom/ns#" term="access" /><category scheme="http://www.blogger.com/atom/ns#" term="primary key" /><category scheme="http://www.blogger.com/atom/ns#" term="design" /><category scheme="http://www.blogger.com/atom/ns#" term="attribute" /><category scheme="http://www.blogger.com/atom/ns#" term="tables" /><category scheme="http://www.blogger.com/atom/ns#" term="normalization" /><category scheme="http://www.blogger.com/atom/ns#" term="entity" /><category scheme="http://www.blogger.com/atom/ns#" term="theory" /><category scheme="http://www.blogger.com/atom/ns#" term="tutorial" /><category scheme="http://www.blogger.com/atom/ns#" term="database" /><category scheme="http://www.blogger.com/atom/ns#" term="relationship" /><title>Microsoft Access Tutorial - Database Design - Table Structure</title><content type="html">In this &lt;span style="font-weight:bold;"&gt;Microsoft Access Tutorial&lt;/span&gt;, we are going to discuss good database design as it relates to table structure. Good database design is a many faceted beast, and later on in the tutorials, we will be talking about interface design, naming conventions, and other areas relevant to database design, but to start with, the structure of your tables is the foundation upon which you will build the rest of your database, so it is important to get this part right.&lt;br /&gt;&lt;br /&gt;There are a lot of difficult terms that you may have heard thrown around by database theorists, like First Normal Form, Normalization, and Boyce-Codd Normal Form, which tend to scare the beginner off. The overall concept of good database design can be boiled down to these three simple rules...&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;li&gt;One Table, One Entity (or Interaction)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;One Field, One Attribute&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Only Enter Data Once&lt;/li&gt;&lt;/span&gt;&lt;br /&gt;&lt;h3&gt;One Table, One Entity (or Interaction)&lt;/h3&gt;Let's take a walk through your hypothetical shop. We walk through the front door and we see all different types of products for sale on the shelves. We see Judy behind the counter, and three or four customers walking around. Behind us, the Coca Cola guy has just come in to restock your fridge. As we walk in, a customer walks up the register and puts her items on the counter. When we talk about entities, we are talking about individual things in your shop. Customer is an entity, Salesperson (Judy) is an entity, Supplier (the Coca Cola man) is an entity, and Product is as well. These are all tangible entities, you can see and feel them (although that may not make the customers very happy).&lt;br /&gt;&lt;br /&gt;Those things that you can't see or feel are interactions between entities. Everything in your shop is interlinked in some way. The Customer walked up to the Salesperson and put her Products on the counter. There are three different entities interacting with each other here, and the interaction is called a Sale. The Coca Cola man has finished stocking your fridge, and gives Judy an invoice. This interaction is called a Purchase.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.microsoft-access-tutorial.com/"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://2.bp.blogspot.com/_YLdWzP6TFcM/SG8VJhu21WI/AAAAAAAAASE/Gr0Y2gFRz1k/s400/one+table+one+entity.jpg" border="0" alt="Microsoft Access Tutorial - One Table, One Entity (or Interaction)"id="BLOGGER_PHOTO_ID_5219374496360182114" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;For each of these entities and interactions, a separate table should be created within your &lt;span style="font-weight:bold;"&gt;Microsoft Access Database&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;One Field, One Attribute&lt;/h3&gt;Each Entity and Interaction is made up of multiple attributes. Take your customer for example, it's easy enough to call him customer, but for good customer relations, and future sales possibilities, you are going to want more information than that. The sort of information you may want to record for this customer is First Name, Last Name, Address, Age, Phone Number, Email, etc. All this information gives you a better idea of who this customer is. Now let's say you've stored the data I just listed above in a Customer table for 1,000 customers. Now, you want to send a newsletter to all the customers in Harrisville. The problem is, you have stored the customers address in a single field, and as you look through the table, you notice that the field holds street numbers, street names, suburbs, postcode and states, making it time consuming and tedious to find all the customers in Harrisville. &lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.microsoft-access-tutorial.com/"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://3.bp.blogspot.com/_YLdWzP6TFcM/SG7yIbZVvKI/AAAAAAAAAR0/Uk1P8mcuBBQ/s400/one+field+one+attribute.jpg" border="0" alt="Microsoft Access Tutorial - One Field, One Attribute"id="BLOGGER_PHOTO_ID_5219375244775898274" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;When you set up a field in &lt;span style="font-weight:bold;"&gt;Microsoft Access&lt;/span&gt;, you need to imagine what you will be typing into that field in the future. Another example would be in the products table. Say you sell whitegoods in your shop, and your products table has Product Name, Model Number, Description and Sales Price. After a while, you start noticing entries in the description field like "Stainless Steel, 400 Litre, Freezer on top, 4 star energy rating". Now, when you want to find all your 400 litre fridges, it's going to be difficult, because you haven't provided a separate field for that attribute, and it's ended up being dumped in the description field.&lt;br /&gt;&lt;br /&gt;You need to break each entity or interaction down into the smallest pieces possible&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;Only Enter Data Once&lt;/h3&gt;This links back to the One Table, One Entity rule, but really is an explanation of how everything links together. Imagine you are recording a sale. You don't want to be entering the customers name, address phone number, etc, everytime the customer comes in and buys something. You already have that information in the Customer table. Instead, you want to link the customer table to the sales table. This link is called a Relationship. &lt;br /&gt;&lt;br /&gt;Each entity and interaction should have something that uniquely identifies it from the others of it's kind. For example, you may have a customer named Bob Smith, but his name itself is not unique (there are plenty of Bob Smiths in the world). He lives in Harrisville, but even that doesn't uniquely identify him, as there may be another Bob Smith in Harrisville. To take it to the extreme, Bob Smith has a son who is also called Bob Smith, and they both live in the same house and therefore have the same address and phone number. How are we going to uniquely identify them within our database? Well, the easiest way is to create a number (a Customer ID) that is automatically assigned to each customer by the database itself. Within &lt;span style="font-weight:bold;"&gt;Microsoft Access&lt;/span&gt;, this is called an Autonumber, and because it uniquely identifies the customer, it is also called a "&lt;span style="font-weight:bold;"&gt;&lt;span style="font-style:italic;"&gt;Primary Key&lt;/span&gt;&lt;/span&gt;".&lt;br /&gt;&lt;br /&gt;Now, when you enter your sale into the database, the only thing you need to record in the sales table is the Customer ID, the database can then retrieve the rest of the information (Name, Address, etc) from the customer table. The Customer ID that is stored in the Sales table is called a "&lt;span style="font-weight:bold;"&gt;&lt;span style="font-style:italic;"&gt;Foreign Key&lt;/span&gt;&lt;/span&gt;". It doesn't uniquely identify the table that it is in, but links back to a Primary Key in another table.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.microsoft-access-tutorial.com/"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://3.bp.blogspot.com/_YLdWzP6TFcM/SG7ypa6FsII/AAAAAAAAAR8/NmDXt1wGWgQ/s400/only+enter+data+once.jpg" border="0" alt="Microsoft Access Tutorial - Only Enter Data Once"id="BLOGGER_PHOTO_ID_5219375811580506242" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;By creating &lt;span style="font-weight:bold;"&gt;Relationships&lt;/span&gt; throughout your database, you are linking all your entities and interactions together (as they are linked in real life), and minimizing the need to enter in information more than once.&lt;br /&gt;&lt;br /&gt;This &lt;span style="font-weight:bold;"&gt;Microsoft Access Tutorial&lt;/span&gt; has touched on database design and normalization, and has given you the basis that you need to start desiging your database. If you would like to explore this topic in further depth, there is an excellent explanation of the &lt;a href="http://tinyurl.com/5859oh" target="_blank"&gt;3 Normal Forms at phlonx.com&lt;/a&gt;, and another great resource at databasedesign-resource.com called &lt;a href="http://tinyurl.com/5e4d5p" target="_blank"&gt;Database Normalization Explained&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Stay tuned to &lt;span style="font-weight:bold;"&gt;Microsoft Access Tutorial&lt;/span&gt;, next time we will look at laying out the design of our database for our fictitious company, Bobbles 'R' Us, using the theory that we have learned here today, and then we will be looking at putting it all together within Microsoft Access. See you again soon.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1750370268732628643-7609511421877647728?l=www.microsoft-access-tutorial.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/E2ywjBvwagZVSHuXOKp8wEthzCk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/E2ywjBvwagZVSHuXOKp8wEthzCk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/E2ywjBvwagZVSHuXOKp8wEthzCk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/E2ywjBvwagZVSHuXOKp8wEthzCk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?a=NEMvnrJo"&gt;&lt;img src="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?a=ugC2Ggnq"&gt;&lt;img src="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?i=ugC2Ggnq" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?a=CXUBHNJw"&gt;&lt;img src="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?i=CXUBHNJw" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?a=odqTT4nG"&gt;&lt;img src="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?d=50" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/MicrosoftAccessTutorial/~4/Cna-vyi2EQw" height="1" width="1"/&gt;</content><link rel="related" href="http://www.microsoft-access-tutorial.com/" title="Microsoft Access Tutorial - Database Design - Table Structure" /><link rel="replies" type="application/atom+xml" href="http://www.microsoft-access-tutorial.com/feeds/7609511421877647728/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=1750370268732628643&amp;postID=7609511421877647728&amp;isPopup=true" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1750370268732628643/posts/default/7609511421877647728?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1750370268732628643/posts/default/7609511421877647728?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/MicrosoftAccessTutorial/~3/Cna-vyi2EQw/microsoft-access-tutorial-database_05.html" title="Microsoft Access Tutorial - Database Design - Table Structure" /><author><name>aj</name><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="03938629441417997958" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_YLdWzP6TFcM/SG8VJhu21WI/AAAAAAAAASE/Gr0Y2gFRz1k/s72-c/one+table+one+entity.jpg" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><feedburner:origLink>http://www.microsoft-access-tutorial.com/2008/07/microsoft-access-tutorial-database_05.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0ANR3w8fip7ImA9WxdWEk4.&quot;"><id>tag:blogger.com,1999:blog-1750370268732628643.post-5212651701724166806</id><published>2008-07-02T10:26:00.008+10:00</published><updated>2008-07-05T14:23:16.276+10:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-07-05T14:23:16.276+10:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="pages" /><category scheme="http://www.blogger.com/atom/ns#" term="queries" /><category scheme="http://www.blogger.com/atom/ns#" term="modules" /><category scheme="http://www.blogger.com/atom/ns#" term="access" /><category scheme="http://www.blogger.com/atom/ns#" term="tutorial" /><category scheme="http://www.blogger.com/atom/ns#" term="microsoft" /><category scheme="http://www.blogger.com/atom/ns#" term="database" /><category scheme="http://www.blogger.com/atom/ns#" term="tables" /><category scheme="http://www.blogger.com/atom/ns#" term="reports" /><category scheme="http://www.blogger.com/atom/ns#" term="macros" /><title>Microsoft Access Tutorial – Database Objects</title><content type="html">In our last &lt;a href="http://www.microsoft-access-tutorial.com/2008/06/microsoft-access-tutorial-creating-your.html"&gt;Microsoft Access Tutorial&lt;/a&gt;, we created a database file, and had a quick look at the database window, with the types of objects listed down the left hand side. Today, we are going to find out what these objects are, and the roles they play in your database.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Tables&lt;/span&gt; – Tables are the foundation of your database. All the data that is stored in and retrieved from your database will be stored in tables. Each table should relate to one “entity” or type of information within your database. For example, you may have a “Customers” table, or an “Appointments” table, or a “Books” table. Each table is made up of multiple fields that describe your entity; for example, “Customer Name”, “Appointment Date”, or “Book ISBN”. It is imperative when building your database, that you get your table structure right. We will be spending the next few lessons discussing just how this is done.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Queries&lt;/span&gt; – A query is a way of looking at the data that is stored in your table. For example, you could create a query that would find all the customers who live in Paris or all the appointments in March. These are called “Select Queries”. There is another type of query, called an “Action Query”. Action queries modify the data in your tables. For instance, they can delete particular records, add new records or update product prices. A “record”, by the way, is one row of information (one customer, one appointment).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Forms&lt;/span&gt; – A form is the window that you look at when entering information. A form can have text boxes, check boxes, drop down boxes, buttons, and many more elements. It is, in short, the interface to your data. What the end users of your database see are a collection of forms that are linked to the data in your tables.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Reports&lt;/span&gt; – This is self explanatory, a printable view of your data, with customisable headers and footers.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Pages&lt;/span&gt; – For the purposes of this tutorial, we will not be touching on Pages. Pages are a way of viewing your data in HTML view (like a web page), and can be used to access your data online.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Macros&lt;/span&gt; – A macro is a series of automated functions. For example, you could create a macro that prompts for a date range, and then prints out a report according to the criteria selected.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Modules&lt;/span&gt; – As Tables are the foundations of your data, Modules are the foundation of your interface. Microsoft Access (and the rest of the MS Office suite of programs), uses a programming language called “Visual Basic for Applications”, or VBA for short. With knowledge of VBA, you can make your database application do pretty much anything you want it to. We will be touching on VBA throughout these tutorials, and providing resources for further learning down the track.&lt;br /&gt;&lt;br /&gt;That’s it for today, over the next couple of tutorials, we will be talking about database design and how to create the foundation of your database. There is still a bit of theory to go through before we start getting our hands dirty, but I’ll try and make it is short and concise as possible. Stay tuned, the next &lt;span style="font-weight: bold;"&gt;Microsoft Access Tutorial&lt;/span&gt; will be coming soon.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1750370268732628643-5212651701724166806?l=www.microsoft-access-tutorial.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/_SWvFGFalFNh33z3GKcg8rA4-UE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/_SWvFGFalFNh33z3GKcg8rA4-UE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/_SWvFGFalFNh33z3GKcg8rA4-UE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/_SWvFGFalFNh33z3GKcg8rA4-UE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?a=cQZiH1CS"&gt;&lt;img src="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?a=kPfSO3sp"&gt;&lt;img src="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?i=kPfSO3sp" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?a=6p4hHdmD"&gt;&lt;img src="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?i=6p4hHdmD" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?a=HUvQEsDy"&gt;&lt;img src="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?d=50" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/MicrosoftAccessTutorial/~4/6H3OW3TfvWc" height="1" width="1"/&gt;</content><link rel="related" href="http://www.microsoft-access-tutorial.com/" title="Microsoft Access Tutorial – Database Objects" /><link rel="replies" type="application/atom+xml" href="http://www.microsoft-access-tutorial.com/feeds/5212651701724166806/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=1750370268732628643&amp;postID=5212651701724166806&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1750370268732628643/posts/default/5212651701724166806?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1750370268732628643/posts/default/5212651701724166806?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/MicrosoftAccessTutorial/~3/6H3OW3TfvWc/microsoft-access-tutorial-database.html" title="Microsoft Access Tutorial – Database Objects" /><author><name>aj</name><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="03938629441417997958" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.microsoft-access-tutorial.com/2008/07/microsoft-access-tutorial-database.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkIAR3g-fCp7ImA9WxRbGU8.&quot;"><id>tag:blogger.com,1999:blog-1750370268732628643.post-1181095232234656376</id><published>2008-06-25T16:19:00.007+10:00</published><updated>2008-12-11T03:02:26.654+10:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-12-11T03:02:26.654+10:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="access" /><category scheme="http://www.blogger.com/atom/ns#" term="tutorial" /><category scheme="http://www.blogger.com/atom/ns#" term="microsoft" /><category scheme="http://www.blogger.com/atom/ns#" term="database" /><title>Microsoft Access Tutorial - Creating Your Database</title><content type="html">In our &lt;a href="http://www.microsoft-access-tutorial.com/2008/06/microsoft-access-tutorials-what-is.html"&gt;last Microsoft Access tutorial&lt;/a&gt;, we discussed the definition of a database, and how a database is used to store and retrieve information. But before we can start storing and retrieving information, we need to create a database file. So in this tutorial, we will be creating our first database file.&lt;br /&gt;&lt;br /&gt;At this stage, I need to warn you that, for the purposes of these tutorials, we will be using Microsoft Access 2003. The interface changes between Access 2000, Access 2002 (XP) and Access 2003 are only minimal, so if you are using any of these versions (which the majority of people are), you shouldn’t have any problems with what is being taught here. For those of you that have upgraded to 2007, these tutorials may prove a little more difficult to follow, as the interface in Access 2007 has changed quite dramatically. That said, the theory that I will be teaching here is still relevant in Access 2007, and if you are willing to experiment with the fancy new toolbars and setup, you should be able to go through these tutorials using Access 2007.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.regnow.com/softsell/nph-softsell.cgi?item=14174-8&amp;amp;affiliate=224167" target="_blank"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://3.bp.blogspot.com/_YLdWzP6TFcM/SGHj6-wYM0I/AAAAAAAAAQU/OUvuB4sj4Sw/s200/01+-+classic-menu-for-access.jpg" alt="" id="BLOGGER_PHOTO_ID_5215700445889573698" border="0" /&gt;&lt;/a&gt;While we’re on the subject of Access 2007, and the dramatic change in the user interface, I should mention a product I have come across that will ease your woes. &lt;a href="http://www.regnow.com/softsell/nph-softsell.cgi?item=14174-8&amp;affiliate=224167" target="_blank"&gt;Classic Menu for Access 2007&lt;/a&gt; is a downloadable add-in for Microsoft Access 2007 that will bring back all the old toolbars that you have grown accustomed to in the earlier versions of Access. Not only that, but all the features that are new in Access 2007 have been added to the old toolbars, so you get the best of both worlds. It’s easy to install, and very quick to download (it’s only a 1.8mb file).&lt;br /&gt;&lt;br /&gt;The other thing I haven’t mentioned as yet is that we will be basing these tutorials around a real life application. We will be building, from scratch, a database for a fictitious company called Bobbles ‘R’ Us. The database we create will track products, customers, suppliers, sales and correspondence. There are other &lt;span style="font-weight: bold;"&gt;Microsft Access tutorials&lt;/span&gt; out there that use the standard “Northwind” template that ships with Microsoft Office. The problem with this is that a lot of the learning takes place in the creation of the database. By building an application from scratch, you will have a deeper understanding of the way everything links together, and you will then be able to use this knowledge to build your own databases. For this same reason, we will be keeping the use of wizards to a minimum. Wizards are fine if you want something done quickly, but they are limited in their customisability, and using them will not broaden your knowledge of how a database works.&lt;br /&gt;&lt;br /&gt;The first thing to do is open up Microsoft Access from the Start Menu. Once it is open, choose “New…” from the File menu, and select “Blank Database” from the options that pop up. Save the database to a place easily accessible (the desktop is fine), and call it Bobbles.mdb.&lt;br /&gt;&lt;br /&gt;Congratulations! You have created your first database! How easy was that? Actually, don’t get too excited, you have just created your first database file; creating the database itself is going to take quite a few more steps.&lt;br /&gt;&lt;br /&gt;You will then be presented with the Database Window. Down the left hand side of this window is a pane called the “Objects Bar”, which has a list of object types that the database uses (Tables, Queries, Forms, Reports, Pages, Macros &amp;amp; Modules). In the next &lt;span style="font-weight: bold;"&gt;Microsoft Access Tutorial&lt;/span&gt;, we are going to explain each of these objects, and what their roles are within your database.&lt;br /&gt;&lt;br /&gt;Please keep in mind that if you have any questions, or suggestions on what should be covered in these posts, you are welcome to leave a comment or send me an email at &lt;a href="mailto:microsoftaccesstutorials@gmail.com"&gt;microsoftaccesstutorials@gmail.com&lt;/a&gt;. Talk to you again soon.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1750370268732628643-1181095232234656376?l=www.microsoft-access-tutorial.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/submrh51KHe98v2mTyKwAbDYm9g/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/submrh51KHe98v2mTyKwAbDYm9g/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/submrh51KHe98v2mTyKwAbDYm9g/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/submrh51KHe98v2mTyKwAbDYm9g/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?a=ncSR7sbE"&gt;&lt;img src="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?a=zt5unlQh"&gt;&lt;img src="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?i=zt5unlQh" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?a=LsXMhLFV"&gt;&lt;img src="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?i=LsXMhLFV" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?a=r7zMDFl4"&gt;&lt;img src="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?d=50" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/MicrosoftAccessTutorial/~4/UpVWl3BV628" height="1" width="1"/&gt;</content><link rel="related" href="http://www.microsoft-access-tutorial.com/" title="Microsoft Access Tutorial - Creating Your Database" /><link rel="replies" type="application/atom+xml" href="http://www.microsoft-access-tutorial.com/feeds/1181095232234656376/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=1750370268732628643&amp;postID=1181095232234656376&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1750370268732628643/posts/default/1181095232234656376?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1750370268732628643/posts/default/1181095232234656376?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/MicrosoftAccessTutorial/~3/UpVWl3BV628/microsoft-access-tutorial-creating-your.html" title="Microsoft Access Tutorial - Creating Your Database" /><author><name>aj</name><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="03938629441417997958" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_YLdWzP6TFcM/SGHj6-wYM0I/AAAAAAAAAQU/OUvuB4sj4Sw/s72-c/01+-+classic-menu-for-access.jpg" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.microsoft-access-tutorial.com/2008/06/microsoft-access-tutorial-creating-your.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0AFRnc5fip7ImA9WxdWEk4.&quot;"><id>tag:blogger.com,1999:blog-1750370268732628643.post-4203520389486986414</id><published>2008-06-18T13:02:00.005+10:00</published><updated>2008-07-05T14:21:57.926+10:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-07-05T14:21:57.926+10:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="access" /><category scheme="http://www.blogger.com/atom/ns#" term="tutorial" /><category scheme="http://www.blogger.com/atom/ns#" term="microsoft" /><category scheme="http://www.blogger.com/atom/ns#" term="database" /><title>Microsoft Access Tutorial - What is a database?</title><content type="html">Before we begin delving into our Microsoft Access tutorials, we need to have a full understanding of what a database is. This site is geared towards people who are just starting out using Microsoft Access, so for some of you with a little more experience, this may seem a little dumbed down, and for that, I apologise in advance. That said, I feel that the first question we need to address is "what exactly is a database".&lt;br /&gt;&lt;br /&gt;Since this site is about Microsoft Access, we will be approaching this question from an MS Access direction. There are a lot of different database programs out there, and a lot of different formats that databases can take. For example, EBay is a database, and so is the phone book sitting under your desk.&lt;br /&gt;&lt;br /&gt;For the purposes of this site, a database is a file (or files) that stores and retrieves information. This file is created using the software program Microsoft Access. It's important that these two different functions (storing and retrieving information) are explained in detail.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Storing Information&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This is the actual physical process of physically inputting data into your database. Entering names, addresses, sales details, invoice numbers, or whatever else your database is tracking. To the layman it may seem that this is a tedious “no-brainer”, but it &lt;span style="font-weight:bold;"&gt;ABSOLUTELY ESSENTIAL&lt;/span&gt; that you store your information in such a way that it can be &lt;span style="font-weight:bold;"&gt;&lt;span style="font-style:italic;"&gt;meaningfully &lt;/span&gt;&lt;/span&gt;retrieved at a later date. If you don’t plan the storage of your data, then doing anything with it becomes difficult. The results will be inconsistent, and thus, useless. Before you start slugging away at entering your list of customers, you need to analyse what sort of information you want to track, and why you need to track it. More on this later. &lt;br /&gt;&lt;br /&gt;You will also want to create an interface for entering data. Microsoft Access allows you to directly type information into the tables you create, but for ease of use, you will want a window with the different fields (information) organised in a meaningful fashion. This is especially true if you are expecting other people to use your database.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Retrieving Information&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Once your data has been stored in a meaningful way, you will want to start using it for statistical reporting and easy retrieval. For this, you will be creating reports that show information in particular ways, and forms that let you determine what you are looking for. Some examples of retrieving information are…&lt;br /&gt;&lt;br /&gt;• Show me all the customers listed from New York City&lt;br /&gt;• Show me all sales between 01-Jan-08 and 30-Jun-08&lt;br /&gt;• Find Mary Higgins&lt;br /&gt;• Who is the contact for XYZ Company?&lt;br /&gt;&lt;br /&gt;In the next few articles, we will be going into much more depth on the storing and retrieving of information as it relates to Microsoft Access. Stay tuned to &lt;span style="font-weight:bold;"&gt;Microsoft Access Tutorial&lt;/span&gt; for more soon.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1750370268732628643-4203520389486986414?l=www.microsoft-access-tutorial.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/NXPMk_hcQuvaYXvXzMl4r0g4gxc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/NXPMk_hcQuvaYXvXzMl4r0g4gxc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/NXPMk_hcQuvaYXvXzMl4r0g4gxc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/NXPMk_hcQuvaYXvXzMl4r0g4gxc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?a=ydxnlZxC"&gt;&lt;img src="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?a=gfp9ryeu"&gt;&lt;img src="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?i=gfp9ryeu" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?a=bmKrY3na"&gt;&lt;img src="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?i=bmKrY3na" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?a=L1xbwL8d"&gt;&lt;img src="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?d=50" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/MicrosoftAccessTutorial/~4/wHt0nB7nSWA" height="1" width="1"/&gt;</content><link rel="related" href="http://microsoftaccesstutorial.blogspot.com/" title="Microsoft Access Tutorial - What is a database?" /><link rel="replies" type="application/atom+xml" href="http://www.microsoft-access-tutorial.com/feeds/4203520389486986414/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=1750370268732628643&amp;postID=4203520389486986414&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1750370268732628643/posts/default/4203520389486986414?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1750370268732628643/posts/default/4203520389486986414?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/MicrosoftAccessTutorial/~3/wHt0nB7nSWA/microsoft-access-tutorials-what-is.html" title="Microsoft Access Tutorial - What is a database?" /><author><name>aj</name><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="03938629441417997958" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.microsoft-access-tutorial.com/2008/06/microsoft-access-tutorials-what-is.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0AFRnc5fyp7ImA9WxdWEk4.&quot;"><id>tag:blogger.com,1999:blog-1750370268732628643.post-5173800660031337755</id><published>2008-06-18T11:08:00.005+10:00</published><updated>2008-07-05T14:21:57.927+10:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-07-05T14:21:57.927+10:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="access" /><category scheme="http://www.blogger.com/atom/ns#" term="tutorial" /><category scheme="http://www.blogger.com/atom/ns#" term="microsoft" /><category scheme="http://www.blogger.com/atom/ns#" term="database" /><title>Microsoft Access Tutorial - Welcome!</title><content type="html">Welcome to Microsoft Access Tutorial. This site provides step by step tutorials and tips on Microsoft Access. &lt;br /&gt;&lt;br /&gt;If you have any questions about this subject, or have suggestions on what you would like covered in these tutorials, please feel free to send an email to &lt;a href="mailto:microsoftaccesstutorials@gmail.com"&gt;microsoftaccesstutorials@gmail.com&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1750370268732628643-5173800660031337755?l=www.microsoft-access-tutorial.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/G1RF9dRg8hNkAldSYawBPEAgNQg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/G1RF9dRg8hNkAldSYawBPEAgNQg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/G1RF9dRg8hNkAldSYawBPEAgNQg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/G1RF9dRg8hNkAldSYawBPEAgNQg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?a=rwxHXlCp"&gt;&lt;img src="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?a=mloF23lM"&gt;&lt;img src="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?i=mloF23lM" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?a=vQeFLgLh"&gt;&lt;img src="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?i=vQeFLgLh" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?a=ILnF08jL"&gt;&lt;img src="http://feeds.feedburner.com/~f/MicrosoftAccessTutorial?d=50" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/MicrosoftAccessTutorial/~4/Qry3mEbtNqw" height="1" width="1"/&gt;</content><link rel="related" href="http://microsoftaccesstutorial.blogspot.com/" title="Microsoft Access Tutorial - Welcome!" /><link rel="replies" type="application/atom+xml" href="http://www.microsoft-access-tutorial.com/feeds/5173800660031337755/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=1750370268732628643&amp;postID=5173800660031337755&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1750370268732628643/posts/default/5173800660031337755?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1750370268732628643/posts/default/5173800660031337755?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/MicrosoftAccessTutorial/~3/Qry3mEbtNqw/microsoft-access-tutorials-welcome.html" title="Microsoft Access Tutorial - Welcome!" /><author><name>aj</name><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="03938629441417997958" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.microsoft-access-tutorial.com/2008/06/microsoft-access-tutorials-welcome.html</feedburner:origLink></entry></feed>
