18. marts 2002 - 09:34Der er
9 kommentarer og 1 løsning
Formular, gruppeboks, undlade at checke et felt
Er det i Access muligt at bruge flueben's bokse i en gruppeboks på en sådan måde at det ikke er nødvendigt at vælge et punkt? eller fravælge punkter? Hvis man f.eks. har mulighederne 1,2,3,4 og 5, har afkrydset 4, men fortryder og vil helt undlade at markere et felt.
hi puppetmaster>I haent tried this but I would say that you cant do it! Some how yoy have to de-select the selected checkbox/radio button so I would suggest you have another checkbox/radio button which has the value 0 for example.
How about a function that is activated by the OnClick event (groupbox wide), which checks if the clicked box is infact selected and then deselect it if it is?
puppermaster>Not sure what you mean here! Ff something IS selected then the only way (I know) is to select one of the others, thats why I suggested having another selection which is used to inform that none are selected.
Hmmm...I'll try that.....meantime.......can you solve this: When using the tab control, if a user selects an item on one tab, another tab is to "gain focus". How?
Lets say you have a tab control on your main form and youwnat to move the focus to one of the other tabs. frmsub is the object which contains the sub form IT IS NOT the name of the sub form!
I now have a form called Mammografi - Hovedmenu, which has 4 tabs; Patient, Screening, Mammografi and Logfiler. I'm looking for a way to change from the Patient tab to the Screening tab, when a patient is selected (from a listbox)
Lav et felt (Gerne afkrydsningsfelt) og indsæt koden ved klik:
If Afkrydsningsfelt1 = True Then Ramme1 = False End If
Hvor rammen er din gruppeboks. Du kan også sætte et nyt afkrydsningsfelt ind i din gruppeboks. Hvis du som nævnt i dit spørgsmål har 5 felter, vil det nye afkrydsningsfelt returnere værdien 6. Koden hedder så i gruppeboksens klik event:
If Ramme2 = 6 Then Ramme2 = False End If
På den måde vil du ikke få nogle af afkrydsningsfelterne afkrydset, heller ikke det nye afkrydsningsfelt, hvis det ellers giver nogen mening.
Synes godt om
Ny brugerNybegynder
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.