Lesson 1: Introduction to MS Access and VBA
Microsoft Access shares part of the look of Microsoft Office applications.On top of the application, you see a long bar. On its left is the System icon with theusual key symbol. On the right side of the title bar, you see the windows systembuttons that allow you to minimize, maximize, restore, or close the application.Under the title bar is the Menu Bar with words like File, Edit, View, etc.Under the menu is the toolbar. Toolbars change more regularly here than on mostclassic Microsoft Office applications. For example, the current toolbar is called theForm View toolbar. If you touch almost any object on your interface, a new toolbarcomes up (you will have fun with them).The most usual object of the interface is the Database Window.
To access the Database Window, press F11.The Database Window is made of different parts. On its own title bar, you see thename of the current database. Under the title bar is the Database Window's toolbar,this one also changes a lot depending on the object selected.On the left side of the Database, Microsoft Access Objects are listed by categories.Once you click a category, objects of that category display on the right, wide sectionof the Database Window.To do its work, Microsoft Access organizes a database into objects that we shouldget familiar with.
1. On the Database Window, click Tables.In the right section, double-click tblEmployees. The tblEmployees table opens.2. After viewing the table, to close it, click the close button on its top right corner.
Although looking like a table, a query is a question you ask the database aboutavailable data, and the computer responds by display appropriate results. Whencreating a query, you tell the database what data you are concerned with and whatcategories you want the database to isolate. You can use a query to define newfields based on existing ones. Therefore, there are various kinds of queries.You create a query by defining criteria, then Microsoft Access examines availabledata, if it finds data that matches your criteria, it shows you the result.From our database, we are going to create a query where we will ask the databaseto provide a list of employees that includes only the employee number, the lastname, title, and the office location.
http://www.functionx.com/vbaccess/Lesson01.htm (3 z 8) [16. 6. 2004 10:22:07]