Bonjour,
Je possède une base de donnée avec 4 champs pour suivre des achats (Essence, nature, fournisseur, cout)
Je souhaite à partir d'un formulaire ouvrir un etat selon ce que je recherche à savoir l'ensemble des combinaisons possibles :
- trier par essence puis par nature pour voir la somme des couts
- trier par nature puis par essence pour voir la moyenne des couts
- trier par fournisseur puis par essence puis par nature pour la somme des couts
- ...
Au lieu de créer un etat pour chaque combinaison possible, je pensais créer 3 combobox ou je choisirai les champs à grouper et dans l'ordre voulu, puis un quatrième combobox qui déterminerai l'opération à effectuer sur le champs achat (somme, moy, compte, ...)
Je rajouterai un bouton validé contenant le code qui me permettrai de créer un etat en fonction des paramètres choisis.
une telle conception est-elle faisable ou je demande l'impossible?
merci de vos réponses
Partager