Presentation is loading. Please wait.

Presentation is loading. Please wait.

Some Introductory Programming 1. Structured Query Language (SQL) - used for queries. - a standard database product. 2. Visual Basic for Applications -

Similar presentations


Presentation on theme: "Some Introductory Programming 1. Structured Query Language (SQL) - used for queries. - a standard database product. 2. Visual Basic for Applications -"— Presentation transcript:

1 Some Introductory Programming 1. Structured Query Language (SQL) - used for queries. - a standard database product. 2. Visual Basic for Applications - use of Visual Basic to develop an Access application.

2 The Access Design Screen version of a Query Show all students with an overall mark less than 40%

3 The Access SQL version of the query

4 Run the Query

5 Example of Visual Basic programming. Calculate outcome, put in field on record. A table contains student number, name, coursework mark, exam mark and an empty field for the result (pass or referred). Module Total = 75% coursework + 25% exam which is shown in a calculated field on the form. Result : 40% or over = Pass, otherwise Referred.

6 Exam Mark – Properties OnExit – Code Builder

7 Enter code as below. Note “Text 10” = module total as calculated on form.

8 Text 10 Properties. Enabled = No (To disallow entry – module total is always calculated by computer).

9 Run the Form (Enter data)

10 Let’s add an Exit button

11 Add a Command Button, call it Exit Use Wizard to specify Close Form action.

12 The Wizard will insert the following code as an OnClick event procedure:

13 Add three extra lines to give the following: New lines

14 Access now asks for confirmation before closing the form.


Download ppt "Some Introductory Programming 1. Structured Query Language (SQL) - used for queries. - a standard database product. 2. Visual Basic for Applications -"

Similar presentations


Ads by Google