Presentation is loading. Please wait.

Presentation is loading. Please wait.

Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form.

Similar presentations


Presentation on theme: "Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form."— Presentation transcript:

1 Form and Graphical User Interfaces

2 Lesson plan More about queries More about entering data into a table Form

3 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', 'asd@yahoo.com');

4 Entering data into table

5

6 Entering data

7 Entering data into table

8 Entering data

9 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)

10 Form Data entry forms are the primary means of entering data into tables in the database. Graphical User Interfaces

11 Form Spread-sheet like view: Graphical user interface view

12 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

13 Basic Transaction Processing Form Serves transaction processing applications which add new records, or editing existing records

14 Basic Transaction Processing Form Example: create a form to add a new record or view existing record to Employee table

15 Basic Transaction Processing Form

16

17

18

19

20 Practice Create a form to add a new record and view existing records to Course table

21 Using Design Form Window Form -> Create form in Design view

22 Using Design Form Window

23

24

25 Private 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

26 Practice Create a form to add a new record to the Course table by Create form by Design View

27 Create forms with more than one table

28 Quiz 2 1.a: SELECT DirectorFirstName, DirectorLastName FROM Achievement WHERE Movie =‘Chicago’;

29 Quiz 2 1b SELECT Movie FROM Achievement WHERE DirectorFirstName=‘Conrad’ and DirectorLastName=‘Hall’;

30 Quiz 2 2a Movie Chicago Gangs of New York

31 Quiz 2 2b: Syntax error. Missing From statement. It should be Select DirectorFirstName, DirectorLastName, Studio From Achievement Where movieID =‘200303’;

32 Quiz 2 3 Row 1 and Row 3 will be deleted

33 Create forms with more than one table

34

35

36

37

38

39 Adding Option Groups

40

41

42

43

44

45

46 Adding List boxes

47

48

49

50

51

52

53 Practice Create forms in section a and b of project 1, part 4


Download ppt "Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form."

Similar presentations


Ads by Google