View
213
Download
1
Category
Preview:
Citation preview
MS-Access XP
Lesson 4
Modifying Queries1. Select query in queries2. Click design button or Right click on query and click design view3. Change query fields, sorting order, show and criteria4. Click save button in query design tool bar 5. Click run button in query design tool bar
Renaming Queries1. Select query in queries2. Edit menu, Rename menu item or right click on query and select rename menu item3. Type new name to query
Opening Queries1. Select query in queries2. Click open button database window3. Or double click on selected query
Sorting a Table using Query1. Select queries in objects2. Double click on create query in design view3. Select necessary table and click add button and finally click close button in show table
dialog4. Select fields to show5. Select sorting order under the necessary field
Ascending or Descending6. Click save button in query design tool bar and type the name to query and click ok7. Click run button in query design tool bar
Creating a Library Database• Tables
– Category (Category No (Number), Category Name (Text), Description (Memo))– Book (Book No (Number), Book Name (Text), Author (Text), Category No)– Member (Member No (Number), Name (text), Address (Text), Telephone (Number),
Gender (Text))– Borrowing (Member No, Book No, Lending Date (Date), Due Date (Date))
One category has many books. But one book hasonly one category.
Multiple Table in Queries• Creating a query to display all books with book category in library database
1. Select queries in objects2. Double click on create query in design view3. Add Category and Book tables4. Select Book No, Book Name, Author and Category fields to show6. Click save button in query design tool bar and type the name to query and click ok7. Click run button in query design tool bar
Multiple Table in Queries• Creating a query to display all authors with book category in library database
1. Select queries in objects2. Double click on create query in design view3. Add Category and Book tables4. Select Category No, Category, Description and Author fields to show6. Click save button in query design tool bar and type the name to query and click ok7. Click run button in query design tool bar
Forms• You can use forms for a variety of purposes. Most of information
in a form comes from an underlying record source. Other information in the form is stored in the form design. You create the link between a form and its record source by using graphical objects called controls.
• You can create a form on your own or MS-Access create your form for you using form wizard.
Creating a Form1. Select forms in objects2. Double click create form by using wizard3. Select table or query4. Select fields and click next5. Select form layout and click next6. Select form style and click next7. Select form title 8. select open form to view or enter information to entering data or modify the form design to
modifying the form9. Click finish button
Navigation Buttons
1st Record
Previous Record
Next Record
Last Record
Add new record
Modifying a Form1. Select form2. Click design button in database window or right click on form and select
design view3. View menu, Tool box menu item 4. Add necessary tool box controls to form header, detail and form footer5. Click save button in form design tool bar
Removing Navigation Buttons1. Select design view of a form2. Select view menu3. Select properties menu item4. Select form in list and format tab sheet5. Select No to Navigation Button property
Recommended