Table des matières
PARTIE I : ALGORITHMIQUE ................................................................................................. 4
I. INTRODUCTION ......................................................................................................... 5
1. Historique .................................................................................................................. 5
2. Définition........... ........................................................................................................ 5
3. Structure d’un algorithme ........................................................................................ 6
4. Constantes et variables ............................................................................................. 6
a) Une constante ...................................................................................................... 6
b) Une variable ......................................................................................................... 6
II. ACTIONS ÉLÉMENTAIRES .......................................................................................... 8
1. Affectation ................................................................................................................. 8
a) Définition .............................................................................................................. 8
b) Exemple ................................................................................................................ 8
c) Remarque ............................................................................................................. 8
2. Les opérations entrées / sorties ............................................................................. 8
a) Définition .............................................................................................................. 8
b) Exemple ................................................................................................................ 9
III. LES STRUCTURES DE CONTRÔLE CONDITIONNELLES ............................................ 9
1. Introduction ............................................................................................................... 9
2. La structure alternative SI-ALORS ........................................................................... 9
3. La structure alternative SI_ALORS_SINON ............................................................ 10
4. Structure à choix multiples SELON-QUE ................................................................. 11
IV. LES STRUCTURES REPETITIVES ................................................................................. 13
1. Structure TANTQUE ................................................................................................... 13
2. Structure REPETER .................................................................................................... 14
3. Structure POUR ......................................................................................................... 15
V. PROCEDURES ET FONCTIONS .................................................................................. 16
1. Introduction ............................................................................................................... 16
2. Syntaxe d’une fonction ............................................................................................. 16
3. Syntaxe d’une procédure ......................................................................................... 17
VI. LES TABLEAUX ............................................................................................................ 19
1. Définition ................................................................................................................... 19
2. Syntaxe ....................................................................................................................... 19
3. Accès a un élément du tableau ............................................................................... 19
4. Traitements usuels des tableaux ............................................................................. 20
VII. EXERCICES D’ALGORITHMIQUE .............................................................................. 21
VIII. CORRIGES DES EXERCICES ....................................................................................... 22
PARTIE II : MICROSOFT ACCESS ........................................................................................... 28
I. BASE DE DONNEES MICROSOFT ACCESS ............................................................... 29
1. Le logiciel Microsoft Access ..................................................................................... 29
2. Démarrage d’Access ................................................................................................. 29
3. Création d’une base de données vide ................................................................... 30
II. LES TABLES ................................................................................................................. 32
1. Définition ................................................................................................................... 32
2. Création d’une table ................................................................................................. 32
ESUM Rakotozanany Andriamora Norbert 3
3. Les types de données ............................................................................................... 34
4. Les propriétés générales d’un champ .................................................................... 34
5. Enregistrement de la table ...................................................................................... 35
III. LES RELATIONS .......................................................................................................... 35
1. Définition ................................................................................................................... 35
2. Création de relation ................................................................................................. 36
3. Effets d'une relation ................................................................................................. 37
IV. REQUETE ................................................................................................................................. 38
1. Définition ................................................................................................................... 38
2. Création de requête .................................................................................................. 39
3. Critères de sélection ................................................................................................. 40
4. Requête multi-tables ................................................................................................ 42
5. Requête de calcul de nouveau champ ................................................................... 43
6. Requête de regroupement ...................................................................................... 45
V. LES FORMULAIRES ..................................................................................................... 48
1. Définition .................................................................................................................... 48
2. Création de formulaire avec l’Assistant ................................................................. 48
VI. LES ETATS .................................................................................................................... 51
1. Définition .................................................................................................................... 51
2. Création d’état avec l’assistant ............................................................................... 51
3. Modification d’un état .............................................................................................. 52
Bibliographie ........................................................................................................................... 54