form and graphical user interfaces. lesson plan more about queries more about entering data into a...
TRANSCRIPT
![Page 1: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/1.jpg)
Form and Graphical User Interfaces
Form and Graphical User Interfaces
![Page 2: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/2.jpg)
Lesson plan
• More about queries • More about entering data into a
table• Form
![Page 3: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/3.jpg)
More about queries• Action query to insert a new record into
a table• Queries -> choose the table -> right
mouse click -> SQL View
INSERT INTO [User]VALUES ('000001', '1234567', '34
Lancaster Road', 'Glastonbury', '06033', '[email protected]');
![Page 4: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/4.jpg)
Entering data into table
![Page 5: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/5.jpg)
Entering data into table
![Page 6: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/6.jpg)
Entering data
![Page 7: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/7.jpg)
Entering data into table
![Page 8: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/8.jpg)
Entering data
![Page 9: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/9.jpg)
Practice• Change the Registration table so that every
time, we add a new record, the list of available students (studentID, firstName, lastName) and courses (courseID, courseTitle)
![Page 10: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/10.jpg)
Form
• Data entry forms are the primary means of entering data into tables in the database.
• Graphical User Interfaces
![Page 11: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/11.jpg)
Form• Spread-sheet like view:
• Graphical user interface view
![Page 12: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/12.jpg)
Why Form?• Graphical user interface view
offers:– Presenting data in an organized and
attractive manner– Offering the ability to limit the
number of fields that appear on the form and allow or preventing editing a specific value
![Page 13: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/13.jpg)
Basic Transaction Processing Form
• Serves transaction processing applications which add new records, or editing existing records
![Page 14: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/14.jpg)
Basic Transaction Processing Form
• Example: create a form to add a new record or view existing record to Employee table
![Page 15: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/15.jpg)
Basic Transaction Processing Form
![Page 16: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/16.jpg)
Basic Transaction Processing Form
![Page 17: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/17.jpg)
Basic Transaction Processing Form
![Page 18: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/18.jpg)
Basic Transaction Processing Form
![Page 19: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/19.jpg)
Basic Transaction Processing Form
![Page 20: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/20.jpg)
Practice
• Create a form to add a new record and view existing records to Course table
![Page 21: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/21.jpg)
Using Design Form Window
• Form -> Create form in Design view
![Page 22: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/22.jpg)
Using Design Form Window
![Page 23: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/23.jpg)
Using Design Form Window
![Page 24: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/24.jpg)
Using Design Form Window
![Page 25: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/25.jpg)
Using Design Form WindowPrivate Sub AddNewRecord_Click()On Error GoTo Err_AddNewRecord_Click
Dim sqlStatement As String
sqlStatement = "insert into [Employee] values('" + Me.userssn + "','" + Me.username + "'," + Me.usersalary + ");"
DoCmd.RunSQL (sqlStatement) Exit_AddNewRecord_Click: Exit Sub
![Page 26: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/26.jpg)
Practice
Create a form to add a new record to the Course table by Create form by Design View
![Page 27: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/27.jpg)
Create forms with more than one table
![Page 28: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/28.jpg)
Quiz 2
1.a:SELECT DirectorFirstName,
DirectorLastNameFROM AchievementWHERE Movie =‘Chicago’;
![Page 29: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/29.jpg)
Quiz 2
1bSELECT MovieFROM AchievementWHERE DirectorFirstName=‘Conrad’ andDirectorLastName=‘Hall’;
![Page 30: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/30.jpg)
Quiz 2
2aMovieChicagoGangs of New York
![Page 31: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/31.jpg)
Quiz 2
2b:Syntax error. Missing From statement. It should be
Select DirectorFirstName, DirectorLastName, Studio
From AchievementWhere movieID =‘200303’;
![Page 32: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/32.jpg)
Quiz 2
3Row 1 and Row 3 will be deleted
![Page 33: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/33.jpg)
Create forms with more than one table
![Page 34: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/34.jpg)
Create forms with more than one table
![Page 35: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/35.jpg)
Create forms with more than one table
![Page 36: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/36.jpg)
Create forms with more than one table
![Page 37: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/37.jpg)
Create forms with more than one table
![Page 38: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/38.jpg)
Create forms with more than one table
![Page 39: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/39.jpg)
Adding Option Groups
![Page 40: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/40.jpg)
Adding Option Groups
![Page 41: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/41.jpg)
Adding Option Groups
![Page 42: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/42.jpg)
Adding Option Groups
![Page 43: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/43.jpg)
Adding Option Groups
![Page 44: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/44.jpg)
Adding Option Groups
![Page 45: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/45.jpg)
Adding Option Groups
![Page 46: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/46.jpg)
Adding List boxes
![Page 47: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/47.jpg)
Adding List boxes
![Page 48: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/48.jpg)
Adding List boxes
![Page 49: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/49.jpg)
Adding List boxes
![Page 50: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/50.jpg)
Adding List boxes
![Page 51: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/51.jpg)
Adding List boxes
![Page 52: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/52.jpg)
Adding List boxes
![Page 53: Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form](https://reader034.vdocument.in/reader034/viewer/2022052701/56649e935503460f94b98eed/html5/thumbnails/53.jpg)
Practice
Create forms in section a and b of project 1, part 4