access chapter 5-table tricks, advanced queries and custom forms
TRANSCRIPT
![Page 1: Access Chapter 5-Table Tricks, Advanced Queries and Custom Forms](https://reader036.vdocuments.mx/reader036/viewer/2022080914/56649f4a5503460f94c6bbb6/html5/thumbnails/1.jpg)
Access
Chapter 5-Table Tricks, Advanced Queries and Custom Forms
![Page 2: Access Chapter 5-Table Tricks, Advanced Queries and Custom Forms](https://reader036.vdocuments.mx/reader036/viewer/2022080914/56649f4a5503460f94c6bbb6/html5/thumbnails/2.jpg)
PgP MIS 342 Access 5-2
Lookup Tables
Use to limit user input into a table Data validation Data integrity
Wizard shields you from relationship complexity, Key columns
“Lookup table” must have a defined relationship with the main table Can use SQL statement as data source
![Page 3: Access Chapter 5-Table Tricks, Advanced Queries and Custom Forms](https://reader036.vdocuments.mx/reader036/viewer/2022080914/56649f4a5503460f94c6bbb6/html5/thumbnails/3.jpg)
PgP MIS 342 Access 5-3
Lookup Tables
Examine Wizard results by viewing ‘field properties’ on the Lookup tab
![Page 4: Access Chapter 5-Table Tricks, Advanced Queries and Custom Forms](https://reader036.vdocuments.mx/reader036/viewer/2022080914/56649f4a5503460f94c6bbb6/html5/thumbnails/4.jpg)
PgP MIS 342 Access 5-4
Northwind.mdb Orders Table Properties
Examine the properties
![Page 5: Access Chapter 5-Table Tricks, Advanced Queries and Custom Forms](https://reader036.vdocuments.mx/reader036/viewer/2022080914/56649f4a5503460f94c6bbb6/html5/thumbnails/5.jpg)
PgP MIS 342 Access 5-5
Table Input Masks
Enforces predefined format Study input mask characters Experiment with
the Wizard
![Page 6: Access Chapter 5-Table Tricks, Advanced Queries and Custom Forms](https://reader036.vdocuments.mx/reader036/viewer/2022080914/56649f4a5503460f94c6bbb6/html5/thumbnails/6.jpg)
PgP MIS 342 Access 5-6
Table Input Masks
Note literal display characters can be stored in database. You may not think this is necessary, but it is wise to store the characters if you plan on exporting the table to a text or other external file.
Consider when interfacing with other systems. XML, EDI, other databases
![Page 7: Access Chapter 5-Table Tricks, Advanced Queries and Custom Forms](https://reader036.vdocuments.mx/reader036/viewer/2022080914/56649f4a5503460f94c6bbb6/html5/thumbnails/7.jpg)
PgP MIS 342 Access 5-7
Table Input Mask Exercise
Using blank Access database file, Create new table, with two fields
PhoneNumberWithMaskCharacters PhoneNumberWithoutMaskCharacters
Use Input Mask Wizard to setup fields Enter data into both fields of a record Export table to Excel file Examine results
![Page 8: Access Chapter 5-Table Tricks, Advanced Queries and Custom Forms](https://reader036.vdocuments.mx/reader036/viewer/2022080914/56649f4a5503460f94c6bbb6/html5/thumbnails/8.jpg)
PgP MIS 342 Access 5-8
Table Input Mask Exercise
PhoneNumberWithMaskCharacters !\(999") "000\-0000;0;_
PhoneNumberWithoutMaskCharacters !\(999") "000\-0000;;_
Sections separated by ‘;’ What does each section mean?
![Page 9: Access Chapter 5-Table Tricks, Advanced Queries and Custom Forms](https://reader036.vdocuments.mx/reader036/viewer/2022080914/56649f4a5503460f94c6bbb6/html5/thumbnails/9.jpg)
PgP MIS 342 Access 5-9
Table Input Mask Exercise
Section 1-The Mask 19 possible characters, search Help for
InputMask Property
Section 2-Store which characters? 0- store all characters 1 or blank- store only typed characters
Section 3- Placeholder character
![Page 10: Access Chapter 5-Table Tricks, Advanced Queries and Custom Forms](https://reader036.vdocuments.mx/reader036/viewer/2022080914/56649f4a5503460f94c6bbb6/html5/thumbnails/10.jpg)
PgP MIS 342 Access 5-10
Query-Pattern Match
Query criteria, Like combined with wildcard characters-*,?,#
![Page 11: Access Chapter 5-Table Tricks, Advanced Queries and Custom Forms](https://reader036.vdocuments.mx/reader036/viewer/2022080914/56649f4a5503460f94c6bbb6/html5/thumbnails/11.jpg)
PgP MIS 342 Access 5-11
Parameter Query
Specify criteria at run time Access provides the Prompt box,… End user supplies the parameter
Offers a degree of flexibility But-user needs to know value to enter!
![Page 12: Access Chapter 5-Table Tricks, Advanced Queries and Custom Forms](https://reader036.vdocuments.mx/reader036/viewer/2022080914/56649f4a5503460f94c6bbb6/html5/thumbnails/12.jpg)
PgP MIS 342 Access 5-12
Custom Forms
Start from scratch, Modify existing form or… Begin with the Form Wizard and modify the
results…
Modifications are done in Design View
![Page 13: Access Chapter 5-Table Tricks, Advanced Queries and Custom Forms](https://reader036.vdocuments.mx/reader036/viewer/2022080914/56649f4a5503460f94c6bbb6/html5/thumbnails/13.jpg)
PgP MIS 342 Access 5-13
Custom Forms-Items Needed
Learn the available objects Text Box, Command Buttons…
Refer to the Field List Realize different objects have different
properties Learn how to select, move and position
controls
![Page 14: Access Chapter 5-Table Tricks, Advanced Queries and Custom Forms](https://reader036.vdocuments.mx/reader036/viewer/2022080914/56649f4a5503460f94c6bbb6/html5/thumbnails/14.jpg)
PgP MIS 342 Access 5-14
Custom Forms-Labels vs Text Box
Label- displays static text
Text Box- the most basic “data bound” control. Used to display data from tables, queries, calculated fields or expressions
![Page 15: Access Chapter 5-Table Tricks, Advanced Queries and Custom Forms](https://reader036.vdocuments.mx/reader036/viewer/2022080914/56649f4a5503460f94c6bbb6/html5/thumbnails/15.jpg)
PgP MIS 342 Access 5-15
Custom Forms-Tabs
Efficient use of space Requires good logical grouping of fields to
be effective
The more familiar you are with positioning, resizing and aligning of controls, the easier this will be
![Page 16: Access Chapter 5-Table Tricks, Advanced Queries and Custom Forms](https://reader036.vdocuments.mx/reader036/viewer/2022080914/56649f4a5503460f94c6bbb6/html5/thumbnails/16.jpg)
PgP MIS 342 Access 5-16
Form Filtering
Use to target certain field values Filters that you use often can be saved as a
query Can also apply queries as filters
Filter by Form Apply query as filter