Tri par date
Résolu/Fermé
radibus
Messages postés
20
Date d'inscription
samedi 24 mai 2008
Statut
Membre
Dernière intervention
29 octobre 2017
-
28 oct. 2017 à 16:50
yg_be Messages postés 22720 Date d'inscription lundi 9 juin 2008 Statut Contributeur Dernière intervention 23 avril 2024 - 29 oct. 2017 à 10:55
yg_be Messages postés 22720 Date d'inscription lundi 9 juin 2008 Statut Contributeur Dernière intervention 23 avril 2024 - 29 oct. 2017 à 10:55
A voir également:
- Tri par date
- Trier par date excel - Guide
- Triez la liste comme sur cette illustration (attention, on ne voit que le début …). quel est le mot formé par les 6 dernières lettres de la colonne code ? - Forum Excel
- Publipostage date en anglais ✓ - Forum Excel
- Publipostage date inversée ✓ - Forum Word
- Passé cette date - Forum Logiciels
6 réponses
radibus
Messages postés
20
Date d'inscription
samedi 24 mai 2008
Statut
Membre
Dernière intervention
29 octobre 2017
2
28 oct. 2017 à 16:56
28 oct. 2017 à 16:56
je travaille dans un sous formulaire
Le champs qui "pointe" sur la date année est au format mmmm/aaaaa
Le champs qui "pointe" sur la date année est au format mmmm/aaaaa
radibus
Messages postés
20
Date d'inscription
samedi 24 mai 2008
Statut
Membre
Dernière intervention
29 octobre 2017
2
28 oct. 2017 à 17:10
28 oct. 2017 à 17:10
pardon c'est
ORDER BY Format([DATE ENTREE],"mmmm yyyy") ASC;
mais ca ne fonctionne toujours pas
ORDER BY Format([DATE ENTREE],"mmmm yyyy") ASC;
mais ca ne fonctionne toujours pas
yg_be
Messages postés
22720
Date d'inscription
lundi 9 juin 2008
Statut
Contributeur
Dernière intervention
23 avril 2024
1 476
Modifié le 28 oct. 2017 à 17:34
Modifié le 28 oct. 2017 à 17:34
bonjour, suggestion:
SELECT ... , format(dateserial(year([DATE ENTREE]),month([DATE ENTREE]),1),"mmmm yyyy") FROM [ENTREE DE LOT] GROUP BY year([DATE ENTREE]), month([DATE ENTREE]) ORDER BY year([DATE ENTREE]), month([DATE ENTREE]) ;
radibus
Messages postés
20
Date d'inscription
samedi 24 mai 2008
Statut
Membre
Dernière intervention
29 octobre 2017
2
29 oct. 2017 à 09:06
29 oct. 2017 à 09:06
Bonjour,
merci
erreur de syntaxe sans l'expression de ce que j'ai souligné ci dessous
SELECT [ENTREE DE LOT].[TYPE CLIENT], Format([DATE ENTREE],"mmmm yyyy") AS MOIS, Sum([ENTREE DE LOT].POIDS) AS SommeDePOIDS, [MATERIEL ].[FAMILLE INFORMATIQUE]
FROM [MATERIEL] INNER JOIN [ENTREE DE LOT] ON [MATERIEL].MATERIEL = [ENTREE DE LOT].MATERIEL
GROUP BY [ENTREE DE LOT].[TYPE CLIENT], Format([DATE ENTREE],"mmmm yyyy"), [MATERIEL].[FAMILLE INFORMATIQUE]
HAVING ((([ENTREE DE LOT].[TYPE CLIENT]) Like "SOCIETE"))
SELECT ... , format(dateserial(year([DATE ENTREE]),month([DATE ENTREE]),1),"mmmm yyyy")
FROM [ENTREE DE LOT]
GROUP BY year([DATE ENTREE]), month([DATE ENTREE])
ORDER BY year([DATE ENTREE]), month([DATE ENTREE])
merci
erreur de syntaxe sans l'expression de ce que j'ai souligné ci dessous
SELECT [ENTREE DE LOT].[TYPE CLIENT], Format([DATE ENTREE],"mmmm yyyy") AS MOIS, Sum([ENTREE DE LOT].POIDS) AS SommeDePOIDS, [MATERIEL ].[FAMILLE INFORMATIQUE]
FROM [MATERIEL] INNER JOIN [ENTREE DE LOT] ON [MATERIEL].MATERIEL = [ENTREE DE LOT].MATERIEL
GROUP BY [ENTREE DE LOT].[TYPE CLIENT], Format([DATE ENTREE],"mmmm yyyy"), [MATERIEL].[FAMILLE INFORMATIQUE]
HAVING ((([ENTREE DE LOT].[TYPE CLIENT]) Like "SOCIETE"))
SELECT ... , format(dateserial(year([DATE ENTREE]),month([DATE ENTREE]),1),"mmmm yyyy")
FROM [ENTREE DE LOT]
GROUP BY year([DATE ENTREE]), month([DATE ENTREE])
ORDER BY year([DATE ENTREE]), month([DATE ENTREE])
yg_be
Messages postés
22720
Date d'inscription
lundi 9 juin 2008
Statut
Contributeur
Dernière intervention
23 avril 2024
1 476
29 oct. 2017 à 09:13
29 oct. 2017 à 09:13
SELECT [ENTREE DE LOT].[TYPE CLIENT], format(dateserial(year([DATE ENTREE]),month([DATE ENTREE]),1),"mmmm yyyy") AS MOIS, Sum([ENTREE DE LOT].POIDS) AS SommeDePOIDS, [MATERIEL ].[FAMILLE INFORMATIQUE] FROM [MATERIEL] INNER JOIN [ENTREE DE LOT] ON [MATERIEL].MATERIEL = [ENTREE DE LOT].MATERIEL WHERE [ENTREE DE LOT].[TYPE CLIENT] = "SOCIETE" GROUP BY [ENTREE DE LOT].[TYPE CLIENT], year([DATE ENTREE]), month([DATE ENTREE]), [MATERIEL].[FAMILLE INFORMATIQUE] ORDER BY year([DATE ENTREE]), month([DATE ENTREE])
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question
radibus
Messages postés
20
Date d'inscription
samedi 24 mai 2008
Statut
Membre
Dernière intervention
29 octobre 2017
2
29 oct. 2017 à 09:28
29 oct. 2017 à 09:28
Génial !
en ajoutant ASC à la fin j'ai vraiment l'ordre croissant ( juillet 2010, septembre 2010...)
Si je ne mets pas ASC alors ca me fait décembre 2010, novembre 2010 ...)
Ce que j'aurais voulu en fait de commencer par octobre 2017 puis septembre 2017 ...
en ajoutant ASC à la fin j'ai vraiment l'ordre croissant ( juillet 2010, septembre 2010...)
Si je ne mets pas ASC alors ca me fait décembre 2010, novembre 2010 ...)
Ce que j'aurais voulu en fait de commencer par octobre 2017 puis septembre 2017 ...
yg_be
Messages postés
22720
Date d'inscription
lundi 9 juin 2008
Statut
Contributeur
Dernière intervention
23 avril 2024
1 476
29 oct. 2017 à 09:45
29 oct. 2017 à 09:45
quand tu ne mets pas ASC, mets-tu autre chose?
je suggère
je suggère
ORDER BY year([DATE ENTREE]) DESC, month([DATE ENTREE]) DESC
radibus
Messages postés
20
Date d'inscription
samedi 24 mai 2008
Statut
Membre
Dernière intervention
29 octobre 2017
2
29 oct. 2017 à 10:36
29 oct. 2017 à 10:36
Je ne mettais rien, j'avais copier/coller ton code
Bonne suggestion ca fonctionne merci
RESOLU
Bonne suggestion ca fonctionne merci
RESOLU
yg_be
Messages postés
22720
Date d'inscription
lundi 9 juin 2008
Statut
Contributeur
Dernière intervention
23 avril 2024
1 476
29 oct. 2017 à 10:55
29 oct. 2017 à 10:55
parfait, peux-tu marquer comme résolu en utilisant le lien sous le titre?