17. februar 2004 - 09:23Der er
16 kommentarer og 1 løsning
søge ved hjælp af en combo box
Hej Eksperter.
I min tabel har jeg følgende Yes/No felter(flueben) Captain, ChiefOfficer, ChiefEngineer, FirstOfficer, SecondOfficer og Crew
Hvis jeg vælger en af disse i en combo box og de er "true" så skulle alle records som er true filtreres fra. Der skal være en blank valg mulighed som medtager alle (uden filter) Hvordan gør man det!
Jeg tænkte noget i retning af fx. "[DinTabel].Captain = True" bare med comboboxen som variable. Har ikke testet det, så jeg ved faktisk ikke om det kan lade sig gøre :c)
You say you have a table with 6 yes/no fields (Captain, ChiefOfficer, ChiefEngineer, FirstOfficer, SecondOfficer og Crew)
Now you want to use a combo to filter the result depending on what value you choose from the combo. The combo contains
Captain Chief Officer Chief Engineer First Officer Second Officer Crew
First, I'll just point out that it seems to me that this is a normalization problem. You should have a seperate table containing these values each with an ID. Then in the table where you have th e6 Yes/no fields you should have ONE field (foreign key) to contain the ID.
But lets look at your problem as it is!
First I would alter the combo to contain two columsn with these values
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.