Tri par date
Résolu
radibus
Messages postés
20
Statut
Membre
-
yg_be Messages postés 23437 Date d'inscription Statut Contributeur Dernière intervention -
yg_be Messages postés 23437 Date d'inscription Statut Contributeur Dernière intervention -
Bonjour,
Acces 2007
Après avoir enfin pu regrouper mes dates ( merci yg_be) je souhaiterais les trier.
On dirait qu'il ne reconnait pas le format car il me les classe par ordre alphabétique ( aout 2010, aout 2011...) alors que je souhaiterais aout 2010, septembre 2010 ...
mon code sql:
ORDER BY Format([DATE ENTREE],"mmmm yyyy");
merci d'avance
Acces 2007
Après avoir enfin pu regrouper mes dates ( merci yg_be) je souhaiterais les trier.
On dirait qu'il ne reconnait pas le format car il me les classe par ordre alphabétique ( aout 2010, aout 2011...) alors que je souhaiterais aout 2010, septembre 2010 ...
mon code sql:
ORDER BY Format([DATE ENTREE],"mmmm yyyy");
merci d'avance
A voir également:
- Tri par date
- Tri sur excel - Guide
- Logiciel tri photo - Guide
- Retrouver une publication facebook par date - Guide
- Excel trier par date ne fonctionne pas ✓ - Forum Excel
- Problème format date et tri sous Excel ✓ - Forum Excel
6 réponses
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
yg_be
Messages postés
23437
Date d'inscription
Statut
Contributeur
Dernière intervention
Ambassadeur
1 587
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]) ;
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])
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