Creating and working with queries in MS Access
BP210P Computer Applications in Pharmacy Practical
Aim
Creating and working with queries in MS Access
Construction of query can be accomplished by using
- Query wizard
- Query design view
Construction of query using query wizard
Steps to create the query using query wizard
1: Open Microsoft access 2007 database
2: Select ‘create’ tab on ribbon.
3: Click on ‘Query Wizard’ option. A ‘New Query’ dialog box will be displayed.
Step 4: Select ‘Simple Query Wizard’ and click ok button. Simple Query Wizard dialog box will be displayed as shown below
Step 5: In simple Query Wizard dialog box, select the table you want to use for query. Also select the fields for query. Then click next button
Step 6: Assign title for the query and click on finish button. The query is as given below
Construction of Query using Design view
Following steps are required to create the query using design view.
Step 1: Select ‘create tab’ on ribbon
Step 2: Click on ‘Query Design’ option. This brings a ‘Shown Table’ dialog box with Query in
design view in background.
Step 3: Select the table for the query and click add, and then click close. The selected tables appear in the Query dialog box.
Step 4: Select the fields for the query from the selected table: you can perform calculation on these input fields. You can also apply various the options on query such as sort, show, criteria, etc. the output of the query is displayed as given below.
Step 5: After giving all the required conditions, save the query.
BP210P Computer Applications in Pharmacy Practical
- Design a questionnaire using a word processing package to gather information about a particular disease.
- Create an HTML web page to show personal information.
- Retrieve the information of a drug and its adverse effects using online tools
- Creating mailing labels Using Label Wizard, generating labels in MS WORD
- Create a database in MS Access to store the patient information with the required fields Using access
- Design a form in MS Access to view, add, delete and modify the patient record in the database
- Generating report and printing the report from the patient database
- Creating invoice table using MS Access
- Drug information storage and retrieval using MS Access
- Creating and working with queries in MS Access
- Exporting Tables, Queries, Forms and Reports to web pages
- Exporting Tables, Queries, Forms and Reports to XML pages