SlideShare a Scribd company logo
1 of 12
Activity                            Relevancy            Resources

1.   •   Distribute Guided Practice: Modify         •   Understand forms   •   Guided
         Forms to students.                             and subforms           Practice:
                                                        through guided         Modify Forms
     •   Using a digital projector, demonstrate
                                                        practice by            activity and key
         the activity as students take notes,
                                                        completing the
         answer questions, and follow along at
                                                        following tasks.       (p 39-46)
         their computers.
                                                        o Edit fields.     •   5.02/ Dbase
     •   Allow ample time for discussion
                                                        o Perform              Activities/ B&B
         during the completion of this activity.
         Ask students why and how during                  calculations
         each stage of the activity to evaluate
         and enable their understanding of the
         importance of formatting, the uses of
         forms and subforms, and the
         functions of the properties fields in
         database tables and forms.

2.   •   Distribute Independent Practice:           •   Understand forms   •   Independent
         Modify Forms to students and                   and subforms           Practice:
         instruct them to complete the activity         through                Modify Forms
         independently.                                 independent            activity and key
                                                        practice by            (p 47-48)
     •   Monitor and provide assistance as
                                                        completing the
         necessary.                                                        •   5.02/ Dbase
                                                        following tasks.       Activities/Hair
     •   Display student work.
                                                        o Edit fields.
     •   Discuss reasons for the formats and            o Perform
         calculations performed in this activity.         calculations
Guided Practice: Modify Forms                                    Teacher Demonstration

Student Name                                Period                   Date

                        GUIDED PRACTICE: MODIFY FORMS

In this activity you will follow along with your teacher to add a query-based subform
to a form and make modifications to the form and subform.
You will need the B&B database used earlier in this objective and well as two other
tables that you will create according to the directions below. A query will be created to
gather information for the subform from the Reservations and Prices tables and link it to
the main form.


Part I: Add tables to the B&B database, retrieve data from another table, and set
property values.


1. Open the B&B database and create a database table using the following
   information. Save the table as Prices.

      Field Name           Data Type                        Description
ID                      AutoNumber
Inn                     Lookup
                                           Double Occupancy, Regular Room, 2 Queen
Double                  Currency
                                           Sized Beds
2. Set the ID field as the primary key
3. It is not necessary to enter the data for the Inn field again. Retrieve the data from
   the HistoricInns table:
Notes:
Guided Practice: Modify Forms                                   Teacher Demonstration

Student Name                                     Period             Date

4. Complete the Prices table by entering the pricing information from the table below.




5. Save the table.
6. Create another table and name it Reservations. Format the fields as follows:
                a.   ID............................AutoNumber
                b.   Name......................Text
                c.   Inn...........................Lookup
                d.   Nights......................Lookup
                e.   Adults......................Lookup
                f.   # of Rooms..............Lookup
7. Use the Lookup property to create a drop down list for the Inn field.
Guided Practice: Modify Forms                                Teacher Demonstration

Student Name                                 Period              Date

8. Format the Nights, Adults, and # of Rooms fields as lookup values. Set the values
   as follows:
            1. Nights:       0, 1, 2, 3, 4, 5, 6, 7
            2. Adults 1, 2
            3. # Rooms       1, 2, 3, 4, 5
Notes:




9. Enter the records below into the Reservations table.




Part II: Create the query that will be used in the subform of the HistoricInns Form.
10. Create a query using the Reservations and Prices tables. Add the fields shown
    below.
                a. Reservations table:
                       1. Name
                       2. Nights
                       3. Adults
                       4. ID
                b. Prices table
                       1. Double
                       2. Inn
Guided Practice: Modify Forms                                  Teacher Demonstration

Student Name                               Period                   Date

11. Save the query as Cost.
Part III: Analyze your work and establish relationships.


12. Describe the results of the query.




13. Why do you think the ID and Inn fields included in the query?




14. Establish the relationships according to the graphic below and save.




15. Based on the graphic above, what purpose does the Cost Query serve?
Guided Practice: Modify Forms                                     Teacher Demonstration

Student Name                                 Period                   Date

Part IV: Add the Cost Query as a subform to the HistoricInns Form and analyze
your work.


16. Select the HistoricInns form and add a subform using the Cost Query and include
    all fields. The subform will be sorted by hotel according to the Inn field of the main
    form.
17. Set the default view property to continuous forms and adjust the width and height of
    the subform so that two records show per page and.
18. What is the purpose of adjusting the width and height of the form?



19. Why is the subform displayed in continuous form view instead of datasheet view?




Part V: Modify the subform.


20. View the HistoricInns form and subform. Which field in the main form is repeated in
    the subform?



21. Hide the repeated field in the subform by setting the Visible Property for the text
    and label boxes to No.
Notes:




22. Add a text box to the sub form and key Amount (not in bold) in the label box. Align
    the boxes to fit the existing information.
Guided Practice: Modify Forms                                    Teacher Demonstration

Student Name                                    Period                Date

Part VI: Calculate the cost of each reservation.


23. If you were writing a spreadsheet formula to calculate the total price of a
    reservation, what three fields would be multiplied?



24. Using the Data Control property of the new text box, enter a formula to calculate the
    price for each reservation and format the data as currency.
Notes:




25. Test the formula to see if it is correct.



26. What have you learned from this activity and how does it apply to the “real” world?




27. Save and submit according to teacher directions.
Guided Practice: Modify Subforms                       Teacher Key


                    GUIDED PRACTICE: MODIFY SUBFORMS
Guided Practice: Modify Subforms                                          Teacher Key


Part III: Analyze your work and establish relationships.


 12. Describe the results of the query.
         a. The query lists the name of each person who has a reservation, the
            number of nights they are booked, the number of adults, and the price for
            a double room. The ID number is the reservation number.
 13. Why do you think the ID and Inn fields included in the query?
         a. The two fields are included in the query to link the Reservations and
            Prices tables together and to later connect them to the HistoricInns form
            and table.
 15. The Cost Query serves the purpose of joining information from the Reservations
     and Prices tables.
 18. The purpose of adjusting the width and height of the form is to create a
     professional and user-friendly appearance in which the data can be clearly viewed.
 19. The subform is displayed in continous form view to make it consistent with the
     appearance of the main form and to make it more user-friendly.
 20. The Inn field is repeated.
 23. Adults x Nights x Double
 26. Student answers will vary.
Independent Practice: Modify Forms                                       Student Activity

Student Name                                Period                   Date

                     INDEPENDENT PRACTICE: MODIFY FORMS

 In this activity you will work independently to modify a form and perform a
 calculation using the Hair database created in an earlier activity.


   1. Retrieve the Hair form.
   2. Modify the field properties in the subform to hide the Customer label and name.
   3. Set the property of the subform header to not visible.
   4. Explain why the Customer label and name should be hidden from the subform.
   5. Add a text box to the subform below the last entry. Key Total (not in bold) in the
      label box/field name and format the control property of the box to the right of the
      label to calculate the total price per order and display in currency format.
   6. Write the formula used to calculate the Total:
   7. If desired, add design enhancements to the form.
   8. Save and submit your work according to teacher directions.
Independent Practice: Modify Forms                      Teacher Key


                   INDEPENDENT PRACTICE: MODIFY FORMS
Independent Practice: Modify Forms   Teacher Key

More Related Content

Similar to Modify Subforms

5.02 Notes Student
5.02 Notes Student5.02 Notes Student
5.02 Notes Student
wmassie
 
Department of Business & ComputingProgramme TitleBTEC HND.docx
Department of Business & ComputingProgramme TitleBTEC HND.docxDepartment of Business & ComputingProgramme TitleBTEC HND.docx
Department of Business & ComputingProgramme TitleBTEC HND.docx
theodorelove43763
 
Lesson Plan For Interview
Lesson Plan For InterviewLesson Plan For Interview
Lesson Plan For Interview
loridell
 
DeVry UniversityStudent Lab ActivityBIS245 Database Essentials.docx
DeVry UniversityStudent Lab ActivityBIS245 Database Essentials.docxDeVry UniversityStudent Lab ActivityBIS245 Database Essentials.docx
DeVry UniversityStudent Lab ActivityBIS245 Database Essentials.docx
duketjoy27252
 
402-IT-X-2022-23 TERMWISE SYLLABUS.pdf
402-IT-X-2022-23 TERMWISE SYLLABUS.pdf402-IT-X-2022-23 TERMWISE SYLLABUS.pdf
402-IT-X-2022-23 TERMWISE SYLLABUS.pdf
JNVKGLCS
 
Page 1 of 11 A. Lab # BSBA BIS245A-5B B.docx
  Page 1 of 11     A. Lab #  BSBA BIS245A-5B  B.docx  Page 1 of 11     A. Lab #  BSBA BIS245A-5B  B.docx
Page 1 of 11 A. Lab # BSBA BIS245A-5B B.docx
joyjonna282
 
IT 204 Final Project Guidelines and RubricOverviewThe fina.docx
IT 204 Final Project Guidelines and RubricOverviewThe fina.docxIT 204 Final Project Guidelines and RubricOverviewThe fina.docx
IT 204 Final Project Guidelines and RubricOverviewThe fina.docx
christiandean12115
 
SEU Management the Blue Sky Project Case Questions.docx
SEU Management the Blue Sky Project Case Questions.docxSEU Management the Blue Sky Project Case Questions.docx
SEU Management the Blue Sky Project Case Questions.docx
write5
 
Xmss ict lesson sec 2 qe
Xmss  ict lesson sec 2 qeXmss  ict lesson sec 2 qe
Xmss ict lesson sec 2 qe
bryan
 
Mathematics content-specifications-item-specifications-and-depth-of-knowledge
Mathematics content-specifications-item-specifications-and-depth-of-knowledgeMathematics content-specifications-item-specifications-and-depth-of-knowledge
Mathematics content-specifications-item-specifications-and-depth-of-knowledge
Sourav Rider
 
358111385 computer-systems-servicing-dll
358111385 computer-systems-servicing-dll358111385 computer-systems-servicing-dll
358111385 computer-systems-servicing-dll
Prince Rainier
 
Term 3 Other handouts and notes
Term 3 Other handouts and notesTerm 3 Other handouts and notes
Term 3 Other handouts and notes
Ghaundar
 

Similar to Modify Subforms (20)

5.02 Notes Student
5.02 Notes Student5.02 Notes Student
5.02 Notes Student
 
Department of Business & ComputingProgramme TitleBTEC HND.docx
Department of Business & ComputingProgramme TitleBTEC HND.docxDepartment of Business & ComputingProgramme TitleBTEC HND.docx
Department of Business & ComputingProgramme TitleBTEC HND.docx
 
Lesson Plan For Interview
Lesson Plan For InterviewLesson Plan For Interview
Lesson Plan For Interview
 
DeVry UniversityStudent Lab ActivityBIS245 Database Essentials.docx
DeVry UniversityStudent Lab ActivityBIS245 Database Essentials.docxDeVry UniversityStudent Lab ActivityBIS245 Database Essentials.docx
DeVry UniversityStudent Lab ActivityBIS245 Database Essentials.docx
 
Access 2016 Instructor S Manual Access Module 2 Building And Using Queries
Access 2016 Instructor S Manual Access Module 2  Building And Using QueriesAccess 2016 Instructor S Manual Access Module 2  Building And Using Queries
Access 2016 Instructor S Manual Access Module 2 Building And Using Queries
 
402-IT-X-2022-23 TERMWISE SYLLABUS.pdf
402-IT-X-2022-23 TERMWISE SYLLABUS.pdf402-IT-X-2022-23 TERMWISE SYLLABUS.pdf
402-IT-X-2022-23 TERMWISE SYLLABUS.pdf
 
Page 1 of 11 A. Lab # BSBA BIS245A-5B B.docx
  Page 1 of 11     A. Lab #  BSBA BIS245A-5B  B.docx  Page 1 of 11     A. Lab #  BSBA BIS245A-5B  B.docx
Page 1 of 11 A. Lab # BSBA BIS245A-5B B.docx
 
IT 204 Final Project Guidelines and RubricOverviewThe fina.docx
IT 204 Final Project Guidelines and RubricOverviewThe fina.docxIT 204 Final Project Guidelines and RubricOverviewThe fina.docx
IT 204 Final Project Guidelines and RubricOverviewThe fina.docx
 
SEU Management the Blue Sky Project Case Questions.docx
SEU Management the Blue Sky Project Case Questions.docxSEU Management the Blue Sky Project Case Questions.docx
SEU Management the Blue Sky Project Case Questions.docx
 
Xmss ict lesson sec 2 qe
Xmss  ict lesson sec 2 qeXmss  ict lesson sec 2 qe
Xmss ict lesson sec 2 qe
 
Mathematics content-specifications-item-specifications-and-depth-of-knowledge
Mathematics content-specifications-item-specifications-and-depth-of-knowledgeMathematics content-specifications-item-specifications-and-depth-of-knowledge
Mathematics content-specifications-item-specifications-and-depth-of-knowledge
 
Bis 245 week 5 lab – er diagram and er matrix
Bis 245 week 5 lab – er diagram and er matrixBis 245 week 5 lab – er diagram and er matrix
Bis 245 week 5 lab – er diagram and er matrix
 
358111385 computer-systems-servicing-dll
358111385 computer-systems-servicing-dll358111385 computer-systems-servicing-dll
358111385 computer-systems-servicing-dll
 
Q1 Wk3 DLP- Housekeeping.docx
Q1 Wk3 DLP- Housekeeping.docxQ1 Wk3 DLP- Housekeeping.docx
Q1 Wk3 DLP- Housekeeping.docx
 
CIS 111 Focus Dreams/newtonhelp.com
CIS 111 Focus Dreams/newtonhelp.comCIS 111 Focus Dreams/newtonhelp.com
CIS 111 Focus Dreams/newtonhelp.com
 
Q1 Wk6 DLP- Housekeeping.docx
Q1 Wk6 DLP- Housekeeping.docxQ1 Wk6 DLP- Housekeeping.docx
Q1 Wk6 DLP- Housekeeping.docx
 
Cis 111 Success Begins / snaptutorial.com
Cis 111 Success Begins / snaptutorial.comCis 111 Success Begins / snaptutorial.com
Cis 111 Success Begins / snaptutorial.com
 
CIS 518 Life of the Mind/newtonhelp.com   
CIS 518 Life of the Mind/newtonhelp.com   CIS 518 Life of the Mind/newtonhelp.com   
CIS 518 Life of the Mind/newtonhelp.com   
 
CIS 518 Imagine Your Future/newtonhelp.com   
CIS 518 Imagine Your Future/newtonhelp.com   CIS 518 Imagine Your Future/newtonhelp.com   
CIS 518 Imagine Your Future/newtonhelp.com   
 
Term 3 Other handouts and notes
Term 3 Other handouts and notesTerm 3 Other handouts and notes
Term 3 Other handouts and notes
 

More from wmassie

Microsoft word 2.01 notes a
Microsoft word   2.01 notes aMicrosoft word   2.01 notes a
Microsoft word 2.01 notes a
wmassie
 
L:\Principles Of Business Notes\2 01 Notes
L:\Principles Of Business Notes\2 01 NotesL:\Principles Of Business Notes\2 01 Notes
L:\Principles Of Business Notes\2 01 Notes
wmassie
 
Document Examples
Document ExamplesDocument Examples
Document Examples
wmassie
 
Document Examples
Document ExamplesDocument Examples
Document Examples
wmassie
 
The target-audience
The target-audienceThe target-audience
The target-audience
wmassie
 
Publications
PublicationsPublications
Publications
wmassie
 
Design principles
Design principlesDesign principles
Design principles
wmassie
 
3.02 student activity
3.02 student activity3.02 student activity
3.02 student activity
wmassie
 
Business publications 3.02 notes
Business publications 3.02 notesBusiness publications 3.02 notes
Business publications 3.02 notes
wmassie
 
Forms And Subforms
Forms And SubformsForms And Subforms
Forms And Subforms
wmassie
 
5.01 Activity Notes A
5.01  Activity Notes A5.01  Activity Notes A
5.01 Activity Notes A
wmassie
 
Database Fundamentals
Database FundamentalsDatabase Fundamentals
Database Fundamentals
wmassie
 
Database Relationships
Database RelationshipsDatabase Relationships
Database Relationships
wmassie
 
Data Types And Field Properties
Data  Types And  Field  PropertiesData  Types And  Field  Properties
Data Types And Field Properties
wmassie
 
Chart Components
Chart ComponentsChart Components
Chart Components
wmassie
 
Types Of Charts
Types Of ChartsTypes Of Charts
Types Of Charts
wmassie
 
4.02a Student Notes
4.02a Student Notes4.02a Student Notes
4.02a Student Notes
wmassie
 

More from wmassie (20)

Microsoft word 2.01 notes a
Microsoft word   2.01 notes aMicrosoft word   2.01 notes a
Microsoft word 2.01 notes a
 
L:\Principles Of Business Notes\2 01 Notes
L:\Principles Of Business Notes\2 01 NotesL:\Principles Of Business Notes\2 01 Notes
L:\Principles Of Business Notes\2 01 Notes
 
Document Examples
Document ExamplesDocument Examples
Document Examples
 
Document Examples
Document ExamplesDocument Examples
Document Examples
 
The target-audience
The target-audienceThe target-audience
The target-audience
 
Publications
PublicationsPublications
Publications
 
Design principles
Design principlesDesign principles
Design principles
 
3.02 student activity
3.02 student activity3.02 student activity
3.02 student activity
 
Business publications 3.02 notes
Business publications 3.02 notesBusiness publications 3.02 notes
Business publications 3.02 notes
 
Reports
ReportsReports
Reports
 
Forms And Subforms
Forms And SubformsForms And Subforms
Forms And Subforms
 
Queries
QueriesQueries
Queries
 
Forms
FormsForms
Forms
 
5.01 Activity Notes A
5.01  Activity Notes A5.01  Activity Notes A
5.01 Activity Notes A
 
Database Fundamentals
Database FundamentalsDatabase Fundamentals
Database Fundamentals
 
Database Relationships
Database RelationshipsDatabase Relationships
Database Relationships
 
Data Types And Field Properties
Data  Types And  Field  PropertiesData  Types And  Field  Properties
Data Types And Field Properties
 
Chart Components
Chart ComponentsChart Components
Chart Components
 
Types Of Charts
Types Of ChartsTypes Of Charts
Types Of Charts
 
4.02a Student Notes
4.02a Student Notes4.02a Student Notes
4.02a Student Notes
 

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Recently uploaded (20)

Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 

Modify Subforms

  • 1. Activity Relevancy Resources 1. • Distribute Guided Practice: Modify • Understand forms • Guided Forms to students. and subforms Practice: through guided Modify Forms • Using a digital projector, demonstrate practice by activity and key the activity as students take notes, completing the answer questions, and follow along at following tasks. (p 39-46) their computers. o Edit fields. • 5.02/ Dbase • Allow ample time for discussion o Perform Activities/ B&B during the completion of this activity. Ask students why and how during calculations each stage of the activity to evaluate and enable their understanding of the importance of formatting, the uses of forms and subforms, and the functions of the properties fields in database tables and forms. 2. • Distribute Independent Practice: • Understand forms • Independent Modify Forms to students and and subforms Practice: instruct them to complete the activity through Modify Forms independently. independent activity and key practice by (p 47-48) • Monitor and provide assistance as completing the necessary. • 5.02/ Dbase following tasks. Activities/Hair • Display student work. o Edit fields. • Discuss reasons for the formats and o Perform calculations performed in this activity. calculations
  • 2. Guided Practice: Modify Forms Teacher Demonstration Student Name Period Date GUIDED PRACTICE: MODIFY FORMS In this activity you will follow along with your teacher to add a query-based subform to a form and make modifications to the form and subform. You will need the B&B database used earlier in this objective and well as two other tables that you will create according to the directions below. A query will be created to gather information for the subform from the Reservations and Prices tables and link it to the main form. Part I: Add tables to the B&B database, retrieve data from another table, and set property values. 1. Open the B&B database and create a database table using the following information. Save the table as Prices. Field Name Data Type Description ID AutoNumber Inn Lookup Double Occupancy, Regular Room, 2 Queen Double Currency Sized Beds 2. Set the ID field as the primary key 3. It is not necessary to enter the data for the Inn field again. Retrieve the data from the HistoricInns table: Notes:
  • 3. Guided Practice: Modify Forms Teacher Demonstration Student Name Period Date 4. Complete the Prices table by entering the pricing information from the table below. 5. Save the table. 6. Create another table and name it Reservations. Format the fields as follows: a. ID............................AutoNumber b. Name......................Text c. Inn...........................Lookup d. Nights......................Lookup e. Adults......................Lookup f. # of Rooms..............Lookup 7. Use the Lookup property to create a drop down list for the Inn field.
  • 4. Guided Practice: Modify Forms Teacher Demonstration Student Name Period Date 8. Format the Nights, Adults, and # of Rooms fields as lookup values. Set the values as follows: 1. Nights: 0, 1, 2, 3, 4, 5, 6, 7 2. Adults 1, 2 3. # Rooms 1, 2, 3, 4, 5 Notes: 9. Enter the records below into the Reservations table. Part II: Create the query that will be used in the subform of the HistoricInns Form. 10. Create a query using the Reservations and Prices tables. Add the fields shown below. a. Reservations table: 1. Name 2. Nights 3. Adults 4. ID b. Prices table 1. Double 2. Inn
  • 5. Guided Practice: Modify Forms Teacher Demonstration Student Name Period Date 11. Save the query as Cost. Part III: Analyze your work and establish relationships. 12. Describe the results of the query. 13. Why do you think the ID and Inn fields included in the query? 14. Establish the relationships according to the graphic below and save. 15. Based on the graphic above, what purpose does the Cost Query serve?
  • 6. Guided Practice: Modify Forms Teacher Demonstration Student Name Period Date Part IV: Add the Cost Query as a subform to the HistoricInns Form and analyze your work. 16. Select the HistoricInns form and add a subform using the Cost Query and include all fields. The subform will be sorted by hotel according to the Inn field of the main form. 17. Set the default view property to continuous forms and adjust the width and height of the subform so that two records show per page and. 18. What is the purpose of adjusting the width and height of the form? 19. Why is the subform displayed in continuous form view instead of datasheet view? Part V: Modify the subform. 20. View the HistoricInns form and subform. Which field in the main form is repeated in the subform? 21. Hide the repeated field in the subform by setting the Visible Property for the text and label boxes to No. Notes: 22. Add a text box to the sub form and key Amount (not in bold) in the label box. Align the boxes to fit the existing information.
  • 7. Guided Practice: Modify Forms Teacher Demonstration Student Name Period Date Part VI: Calculate the cost of each reservation. 23. If you were writing a spreadsheet formula to calculate the total price of a reservation, what three fields would be multiplied? 24. Using the Data Control property of the new text box, enter a formula to calculate the price for each reservation and format the data as currency. Notes: 25. Test the formula to see if it is correct. 26. What have you learned from this activity and how does it apply to the “real” world? 27. Save and submit according to teacher directions.
  • 8. Guided Practice: Modify Subforms Teacher Key GUIDED PRACTICE: MODIFY SUBFORMS
  • 9. Guided Practice: Modify Subforms Teacher Key Part III: Analyze your work and establish relationships. 12. Describe the results of the query. a. The query lists the name of each person who has a reservation, the number of nights they are booked, the number of adults, and the price for a double room. The ID number is the reservation number. 13. Why do you think the ID and Inn fields included in the query? a. The two fields are included in the query to link the Reservations and Prices tables together and to later connect them to the HistoricInns form and table. 15. The Cost Query serves the purpose of joining information from the Reservations and Prices tables. 18. The purpose of adjusting the width and height of the form is to create a professional and user-friendly appearance in which the data can be clearly viewed. 19. The subform is displayed in continous form view to make it consistent with the appearance of the main form and to make it more user-friendly. 20. The Inn field is repeated. 23. Adults x Nights x Double 26. Student answers will vary.
  • 10. Independent Practice: Modify Forms Student Activity Student Name Period Date INDEPENDENT PRACTICE: MODIFY FORMS In this activity you will work independently to modify a form and perform a calculation using the Hair database created in an earlier activity. 1. Retrieve the Hair form. 2. Modify the field properties in the subform to hide the Customer label and name. 3. Set the property of the subform header to not visible. 4. Explain why the Customer label and name should be hidden from the subform. 5. Add a text box to the subform below the last entry. Key Total (not in bold) in the label box/field name and format the control property of the box to the right of the label to calculate the total price per order and display in currency format. 6. Write the formula used to calculate the Total: 7. If desired, add design enhancements to the form. 8. Save and submit your work according to teacher directions.
  • 11. Independent Practice: Modify Forms Teacher Key INDEPENDENT PRACTICE: MODIFY FORMS
  • 12. Independent Practice: Modify Forms Teacher Key