forms: getting started why use forms? –make applications easier to use –prevent errors...
Post on 21-Dec-2015
216 views
TRANSCRIPT
Forms: Getting Started
• Why use forms?– Make applications easier to use– Prevent errors– provide different groups of users with different
views of the database
• There are LOTS of details in creating forms
• We will just get started on it here -- use your book to learn more if you want
Two strategies for forms
• Make an autoform and adjust it– Move the controls around– Remove controls you don’t want– change colors and other properties
• Design the form from scratch– Put the controls you want, where you want– Set the properties as you want
Controls and Properties
• On forms, everything is called a control– Boxes, buttons, etc…
• Controls have properties that govern their appearance, behavior and their connection to the underlying data
• Properties are CRUCIAL– the more you know, the more you can do
Making a new form is easy
Experiment with autoforms &
the form wizard
Forms work with both
tables & queries
Moving controls can be frustrating -- stay calm!
Click & drag here to
move the LABEL
Click & drag here to
move the DATA
Forms and subforms
• How to display “one-to-many” data in a way that can be easily edited?– Parent form displays unique data from “one” side
– Subform displays repeating data from the “many” side
• Examples:– Each resume has many prior jobs
– Each resume has many educations credentials
• In the ActRep database, each person has many activities– Need a form for people and a sub-form for their activities
Strategy for subforms
• Draw the forms and subforms on paper
• Create the main form first, then the subform
• Edit the main form to include the subform
• Link them together – Use the properties of the subform control – Use the “subform field linker”
• Adjust everything until you like it
Lots of controls to choose from
Hold the mouse over the icon to see what kind of control it is.
EXPERIMENT!
… pictures...
Tabs (HR/Vantage uses this a lot)
Subforms (to include related tables)
Buttons, boxes ...
Add the controls you want to the parent form
1. First click on the kind of control
2. Next click on the name of the field
3. Drag the fieldonto the form & move it where
you want it
Edit the form as necessary• Remove, re-label, and move controls
• Note the exact width (e.g., 5-1/2 inches)
Make it the right size and set its properties
Right-button on the subform area to
get at the properties
Use the Subform Field Linker• This determines which fields are linked
Read thisdescription ofthe result if
you’re not sure