SlideShare a Scribd company logo
1 of 28
MS Access How To:
Look up and select
values
Unit 18 Database Design
Extended Diploma in ICT
Link tables
• A link table will have foreign keys
• To create a record you want to select a value
from another table and put the key value in
the link table
• You do this using list boxes
Example
• You want to select a customer, then a
costume and put the key values for those
selections into the rental table
Create a form
• Make a form for the link table
• Add the foreign key IDs
Add a list box
• Click on the List Box control and drag out a
list box
• The List Box Wizard starts
List box
control
List box wizard
• Choose the list box to look up the values in a
table or query
List box wizard
• Select the table you will look up
List box wizard
• Choose the fields that will appear in the list
box
• Pick the primary key first
List box wizard
• Choose any sorting that you want
List box wizard
• You are shown a preview
• You now choose to save the primary key
value from the list box in the foreign key field
on the form
List box wizard
• Type a label for the list box
List box wizard
• The wizard closes and the list box allows you
to select a customer and put the ID in the
correct field
Adding a subform to show
more detail
• There are more customer details you may
want to show, such as the address.
• You can use a subform for this
• Click on the subform control and draw out a
subform
Subform
control
Subform
• The subform wizard opens
• Choose to use an existing table or query
Subform
• Select the right table and the fields you want
to show
• You must include the key
Subform
• Choose from the list and the subform will
show the values from the table associated
with the primary key in the link table
Subform
• Give the subform a sensible name
Subform
• The subfom is created (and looks awful)
Subform appearance
• We need to improve its appearance
Subform property sheet
• Set
• Default view to Single Form
• Record selectors to No
• Navigation buttons to No
• Scroll bars to Neither
• Delete the label
Subform appearance
Subform update
• The subform updates when you use the
record selectors, but not when you use the
list box
• Fix this using some VBA (Visual Basic for
Applications)
Subform update
• Select the list box
• Then click on the three dots in the After
Update property
List box
selected
Three dots
VBA
• A dialogue box opens and you choose Code
Builder
VBA
• The VBA code window opens
Space for
your code
Form this
event
applies to
Event this
code
applies to
VBA
• We want the subform to update after we have
clicked to select a customer.
Refresh the
main formRequery
the sub
form
End result
• The data will now match the selection in the
list box

More Related Content

What's hot

Libre Office Writer Lesson 3: Using Styles and Templates
Libre Office Writer Lesson 3: Using Styles and TemplatesLibre Office Writer Lesson 3: Using Styles and Templates
Libre Office Writer Lesson 3: Using Styles and TemplatesSmart Chicago Collaborative
 
Excel Cell Format for Professional SpreadSheets
Excel Cell Format for Professional SpreadSheetsExcel Cell Format for Professional SpreadSheets
Excel Cell Format for Professional SpreadSheetsOffice365UK
 
Conditional formatting in excel v2
Conditional formatting in excel v2Conditional formatting in excel v2
Conditional formatting in excel v2m182348
 
Refworks manual entry - Classic
Refworks manual entry - ClassicRefworks manual entry - Classic
Refworks manual entry - ClassicUCT
 
Formatting Worksheets
Formatting WorksheetsFormatting Worksheets
Formatting Worksheetscoachhahn
 
Xml For Dummies Chapter 16 Xml And Forms it-slideshares.blogspot.com
Xml For Dummies   Chapter 16 Xml And Forms it-slideshares.blogspot.comXml For Dummies   Chapter 16 Xml And Forms it-slideshares.blogspot.com
Xml For Dummies Chapter 16 Xml And Forms it-slideshares.blogspot.comphanleson
 
Refworks Manual Entry
Refworks Manual EntryRefworks Manual Entry
Refworks Manual EntryUCT
 
Create an index and update an index in word
Create an index and update an index in wordCreate an index and update an index in word
Create an index and update an index in wordRaghu nath
 
PartsLogistics.com- How to use Research Parts-Solicitations
PartsLogistics.com-  How to use Research Parts-SolicitationsPartsLogistics.com-  How to use Research Parts-Solicitations
PartsLogistics.com- How to use Research Parts-SolicitationsCodi Nowacki
 
Formatting text (Microsoft Excel)
Formatting text (Microsoft Excel)Formatting text (Microsoft Excel)
Formatting text (Microsoft Excel)Mirea Mizushima
 
SA05 - Customizing the User Interface
SA05 - Customizing the User Interface SA05 - Customizing the User Interface
SA05 - Customizing the User Interface Maintenance Connection
 
Lesson4 Formatting Text
Lesson4 Formatting TextLesson4 Formatting Text
Lesson4 Formatting Textguevarra_2000
 
How to import CSV file into Microsoft Access 2010
How to import CSV file into Microsoft Access 2010How to import CSV file into Microsoft Access 2010
How to import CSV file into Microsoft Access 2010Henley Walls
 
Lesson 11 Formatting Tables
Lesson 11   Formatting TablesLesson 11   Formatting Tables
Lesson 11 Formatting Tablesguevarra_2000
 
Microsoft office access 2003
Microsoft office access 2003Microsoft office access 2003
Microsoft office access 2003Nisrina Khalilah
 

What's hot (20)

Libre Office Writer Lesson 3: Using Styles and Templates
Libre Office Writer Lesson 3: Using Styles and TemplatesLibre Office Writer Lesson 3: Using Styles and Templates
Libre Office Writer Lesson 3: Using Styles and Templates
 
05.formatting cells
05.formatting cells05.formatting cells
05.formatting cells
 
Excel Cell Format for Professional SpreadSheets
Excel Cell Format for Professional SpreadSheetsExcel Cell Format for Professional SpreadSheets
Excel Cell Format for Professional SpreadSheets
 
Conditional formatting in excel v2
Conditional formatting in excel v2Conditional formatting in excel v2
Conditional formatting in excel v2
 
Libre Office Writer Lesson 2
Libre Office Writer Lesson 2Libre Office Writer Lesson 2
Libre Office Writer Lesson 2
 
Data Management in Excel
Data Management in ExcelData Management in Excel
Data Management in Excel
 
Refworks manual entry - Classic
Refworks manual entry - ClassicRefworks manual entry - Classic
Refworks manual entry - Classic
 
Formatting Worksheets
Formatting WorksheetsFormatting Worksheets
Formatting Worksheets
 
Xml For Dummies Chapter 16 Xml And Forms it-slideshares.blogspot.com
Xml For Dummies   Chapter 16 Xml And Forms it-slideshares.blogspot.comXml For Dummies   Chapter 16 Xml And Forms it-slideshares.blogspot.com
Xml For Dummies Chapter 16 Xml And Forms it-slideshares.blogspot.com
 
Refworks Manual Entry
Refworks Manual EntryRefworks Manual Entry
Refworks Manual Entry
 
Create an index and update an index in word
Create an index and update an index in wordCreate an index and update an index in word
Create an index and update an index in word
 
PartsLogistics.com- How to use Research Parts-Solicitations
PartsLogistics.com-  How to use Research Parts-SolicitationsPartsLogistics.com-  How to use Research Parts-Solicitations
PartsLogistics.com- How to use Research Parts-Solicitations
 
Libre Office Writer Lesson 1
Libre Office Writer Lesson 1Libre Office Writer Lesson 1
Libre Office Writer Lesson 1
 
Formatting text (Microsoft Excel)
Formatting text (Microsoft Excel)Formatting text (Microsoft Excel)
Formatting text (Microsoft Excel)
 
Print11
Print11Print11
Print11
 
SA05 - Customizing the User Interface
SA05 - Customizing the User Interface SA05 - Customizing the User Interface
SA05 - Customizing the User Interface
 
Lesson4 Formatting Text
Lesson4 Formatting TextLesson4 Formatting Text
Lesson4 Formatting Text
 
How to import CSV file into Microsoft Access 2010
How to import CSV file into Microsoft Access 2010How to import CSV file into Microsoft Access 2010
How to import CSV file into Microsoft Access 2010
 
Lesson 11 Formatting Tables
Lesson 11   Formatting TablesLesson 11   Formatting Tables
Lesson 11 Formatting Tables
 
Microsoft office access 2003
Microsoft office access 2003Microsoft office access 2003
Microsoft office access 2003
 

Viewers also liked

Viewers also liked (6)

8
88
8
 
7
77
7
 
04 access howtobuttons
04 access howtobuttons04 access howtobuttons
04 access howtobuttons
 
9
99
9
 
08 benefits of e-commerce
08 benefits of e-commerce08 benefits of e-commerce
08 benefits of e-commerce
 
Ecommerce Security
Ecommerce SecurityEcommerce Security
Ecommerce Security
 

Similar to MS Access How To Look Up and Select Values in Link Tables

Microsoft access exercises
Microsoft access exercisesMicrosoft access exercises
Microsoft access exercisessarahandaiza
 
Access Chapter 02
Access Chapter 02Access Chapter 02
Access Chapter 02jgardne4
 
Creating an ALS learner e-tracking system - demo
Creating an ALS  learner  e-tracking system - demoCreating an ALS  learner  e-tracking system - demo
Creating an ALS learner e-tracking system - demoJisc RSC East Midlands
 
Access Chapter 02
Access Chapter 02Access Chapter 02
Access Chapter 02xtin101
 
Excel chapter 05
Excel chapter 05Excel chapter 05
Excel chapter 05teeworthy
 
Access2013 ch03
Access2013 ch03Access2013 ch03
Access2013 ch03xtin101
 
Access Chapter 01
Access Chapter 01Access Chapter 01
Access Chapter 01xtin101
 
Getting Started with MS Access and Pivot Tables
Getting Started with MS Access and Pivot TablesGetting Started with MS Access and Pivot Tables
Getting Started with MS Access and Pivot TablesParth Acharya
 
Access 2013 Unit C
Access 2013 Unit CAccess 2013 Unit C
Access 2013 Unit Cjarana00
 
Excel chapter 03
Excel chapter 03Excel chapter 03
Excel chapter 03teeworthy
 
Excel Chapter 03
Excel Chapter 03Excel Chapter 03
Excel Chapter 03jgardne4
 
Project on Electronic Spreadsheets for Students
Project on Electronic Spreadsheets for StudentsProject on Electronic Spreadsheets for Students
Project on Electronic Spreadsheets for StudentsPramodSingh874369
 
Access Chapter 01
Access Chapter 01Access Chapter 01
Access Chapter 01jgardne4
 
Chapter 7 -DescriptiveStatistics and Pivot Table
Chapter 7 -DescriptiveStatistics and Pivot TableChapter 7 -DescriptiveStatistics and Pivot Table
Chapter 7 -DescriptiveStatistics and Pivot TableIzwan Nizal Mohd Shaharanee
 
20498245 ato-made-simple
20498245 ato-made-simple20498245 ato-made-simple
20498245 ato-made-simplenarane1976
 

Similar to MS Access How To Look Up and Select Values in Link Tables (20)

Microsoft access exercises
Microsoft access exercisesMicrosoft access exercises
Microsoft access exercises
 
Access Chapter 02
Access Chapter 02Access Chapter 02
Access Chapter 02
 
Creating an ALS learner e-tracking system - demo
Creating an ALS  learner  e-tracking system - demoCreating an ALS  learner  e-tracking system - demo
Creating an ALS learner e-tracking system - demo
 
Access Chapter 02
Access Chapter 02Access Chapter 02
Access Chapter 02
 
Excel chapter 05
Excel chapter 05Excel chapter 05
Excel chapter 05
 
Excel ch06
Excel ch06Excel ch06
Excel ch06
 
Access2013 ch03
Access2013 ch03Access2013 ch03
Access2013 ch03
 
Access2013 ch05
Access2013 ch05Access2013 ch05
Access2013 ch05
 
Treeview listview
Treeview listviewTreeview listview
Treeview listview
 
Pivots and Slicers_v5
Pivots and Slicers_v5Pivots and Slicers_v5
Pivots and Slicers_v5
 
Access Chapter 01
Access Chapter 01Access Chapter 01
Access Chapter 01
 
Getting Started with MS Access and Pivot Tables
Getting Started with MS Access and Pivot TablesGetting Started with MS Access and Pivot Tables
Getting Started with MS Access and Pivot Tables
 
Access 2013 Unit C
Access 2013 Unit CAccess 2013 Unit C
Access 2013 Unit C
 
Excel chapter 03
Excel chapter 03Excel chapter 03
Excel chapter 03
 
Excel Chapter 03
Excel Chapter 03Excel Chapter 03
Excel Chapter 03
 
Project on Electronic Spreadsheets for Students
Project on Electronic Spreadsheets for StudentsProject on Electronic Spreadsheets for Students
Project on Electronic Spreadsheets for Students
 
Access Chapter 01
Access Chapter 01Access Chapter 01
Access Chapter 01
 
Chapter 7 -DescriptiveStatistics and Pivot Table
Chapter 7 -DescriptiveStatistics and Pivot TableChapter 7 -DescriptiveStatistics and Pivot Table
Chapter 7 -DescriptiveStatistics and Pivot Table
 
20498245 ato-made-simple
20498245 ato-made-simple20498245 ato-made-simple
20498245 ato-made-simple
 
Access2013 ch04
Access2013 ch04Access2013 ch04
Access2013 ch04
 

Recently uploaded

Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 

Recently uploaded (20)

Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 

MS Access How To Look Up and Select Values in Link Tables

  • 1. MS Access How To: Look up and select values Unit 18 Database Design Extended Diploma in ICT
  • 2. Link tables • A link table will have foreign keys • To create a record you want to select a value from another table and put the key value in the link table • You do this using list boxes
  • 3. Example • You want to select a customer, then a costume and put the key values for those selections into the rental table
  • 4. Create a form • Make a form for the link table • Add the foreign key IDs
  • 5. Add a list box • Click on the List Box control and drag out a list box • The List Box Wizard starts List box control
  • 6. List box wizard • Choose the list box to look up the values in a table or query
  • 7. List box wizard • Select the table you will look up
  • 8. List box wizard • Choose the fields that will appear in the list box • Pick the primary key first
  • 9. List box wizard • Choose any sorting that you want
  • 10. List box wizard • You are shown a preview
  • 11. • You now choose to save the primary key value from the list box in the foreign key field on the form
  • 12. List box wizard • Type a label for the list box
  • 13. List box wizard • The wizard closes and the list box allows you to select a customer and put the ID in the correct field
  • 14. Adding a subform to show more detail • There are more customer details you may want to show, such as the address. • You can use a subform for this • Click on the subform control and draw out a subform Subform control
  • 15. Subform • The subform wizard opens • Choose to use an existing table or query
  • 16. Subform • Select the right table and the fields you want to show • You must include the key
  • 17. Subform • Choose from the list and the subform will show the values from the table associated with the primary key in the link table
  • 18. Subform • Give the subform a sensible name
  • 19. Subform • The subfom is created (and looks awful)
  • 20. Subform appearance • We need to improve its appearance
  • 21. Subform property sheet • Set • Default view to Single Form • Record selectors to No • Navigation buttons to No • Scroll bars to Neither • Delete the label
  • 23. Subform update • The subform updates when you use the record selectors, but not when you use the list box • Fix this using some VBA (Visual Basic for Applications)
  • 24. Subform update • Select the list box • Then click on the three dots in the After Update property List box selected Three dots
  • 25. VBA • A dialogue box opens and you choose Code Builder
  • 26. VBA • The VBA code window opens Space for your code Form this event applies to Event this code applies to
  • 27. VBA • We want the subform to update after we have clicked to select a customer. Refresh the main formRequery the sub form
  • 28. End result • The data will now match the selection in the list box