Avatar billede exAHSacto Nybegynder
09. januar 2012 - 14:44 Der er 9 kommentarer og
1 løsning

Drill down

Hej folkens,

Jeg håber, at I vil hjælpe en Access rookie.

Jeg er i gang med at skabe en database, hvor der skal en være en drill down funktion, forstået på følgende måde:

Min "drill down" funktion skal fungere på den måde, at jeg har nogle forskellige data-niveauer, hvor en dato kan indsættes. Hvis man vælger det laveste niveau (niveau 4), da skal datoen kun indsættes her. Hvis man vælger et højere niveau (niveau 3), da skal datoen indsættes for alle niveau 4'ere. Hvis man vælger det højeste niveau (niveau 1), da skal datoen indsættes for alle niveauerne under dette - dvs dato på niveau 1 = dato på niveau 4.

Er der nogle der har et godt forslag til, hvordan dette kan gøres?

mvh
Anders
Avatar billede terry Ekspert
09. januar 2012 - 15:21 #1
If your doing this through a form then you will need a way to choose the starting level. You could use a drop down for that by having a query which selects the distinct level from the table where you have your data.

Then maybe a field where you enter the date.

Then it would be just a case of using VB code to loop through the levels from starting level to bottom level and using SQL to  update each level.
Avatar billede exAHSacto Nybegynder
16. januar 2012 - 09:40 #2
hi Terry,

the thing is that the data level can differ from time to time, so it can't be a fixed level.

maybe I don't understand your solution correctly. If it is possible to first choose a level and then enter a date which is added to the level - how can the level (which differs) and the date be related.

/Anders
Avatar billede terry Ekspert
16. januar 2012 - 20:47 #3
Just read your comment Anders, dont have much time right noiw but will look again tomorrow after work
Avatar billede terry Ekspert
17. januar 2012 - 18:00 #4
The solution depends on the table design.

Can you give an example of your table with explanation of course?
Avatar billede exAHSacto Nybegynder
18. januar 2012 - 09:50 #5
well I'm about to start on the design.. do you an advice for a good solution regarding the drill down?
Avatar billede terry Ekspert
18. januar 2012 - 19:13 #6
Its hard to give advice knowing almost nothing of what the database is going to be used for.
Avatar billede exAHSacto Nybegynder
09. juli 2012 - 08:56 #7
terry - i'm closing this one.

you can get the points

thanks for your attention
Avatar billede terry Ekspert
09. juli 2012 - 18:56 #8
Thanks Anders. You need to accept my answer then
Avatar billede exAHSacto Nybegynder
10. juli 2012 - 09:06 #9
Done
Avatar billede terry Ekspert
10. juli 2012 - 18:21 #10
thanks a lot
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester