No cache version.

Caching disabled. Default setting for this page:enabled (code LNG204)
If the display is too slow, you can disable the user mode to view the cached version.

Vous devez être membre et vous identifier pour publier un article.
Les visiteurs peuvent toutefois commenter chaque article par une réponse.

Trouver le dernier jour du mois

Astuces de l’Infobrol ((Office) - Access)Article publié le 07/07/2006 14:37:18


Trouver le premier jour d'un mois est très facile, ça tombe toujours le 1er. Par contre le dernier jour peut être le 30, 31 ou encore le 29 parfois même le 28.
Pour ce faire nous pouvons utiliser la fonction :
  1. DateSerial(‹year›, ‹mois›, ‹jour›)
.
La fonction DateSerial(2006, 7, 1) retourne le 1er juillet 2006. Par contre le dernier jour du mois est le jour qui précède le premier jour du mois suivant. Alors la fonction où le paramètre jour est à la valeur 0 :
DateSerial(2006, 8, 0) retourne le 31 juillet 2006 ou encore le jour précédant le 1er aout 2006. CQFD

Avatar :: Jeanmi Un article de JeanmiModifié 1 fois. (dernière modification le 01/08/2006 12:33:50 par Jeanmi)



Source : indéterminée


Commenter l'article

Commentaires


07/07/2006 14:39:53

C'est tordu, mais c'est un super truc.
Merci.

- Fred -

Sélection, tri et recherche d'articles
FILTRER :
TRIER :1er critère : 2e critère :
CHERCHER : Dans les titres Dans le contenu


[Afficher les liens en fonction des critères du formulaire ci-dessus]

English translation

You have asked to visit this site in English. For now, only the interface is translated, but not all the content yet.

If you want to help me in translations, your contribution is welcome. All you need to do is register on the site, and send me a message asking me to add you to the group of translators, which will give you the opportunity to translate the pages you want. A link at the bottom of each translated page indicates that you are the translator, and has a link to your profile.

Thank you in advance.

Document created the 13/09/2004, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/ast-rf-361.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.