01. september 2005 - 10:12Der er
4 kommentarer og 1 løsning
Read only ComboBox
Hej.
Hvordan laver jeg en combobox til read only i Access97? Altså så man ikke selv kan indtaste noget, men kun vælge de værdier listen indeholder.
Jeg har i forvejen sat den til "Limit to list", og hvis jeg sætter "Locked" til True, så kan man godt nok ikke selv skrive noget, men man kan så heller ikke vælge et punkt på listen.
Hi snowball! Isnt it enough to just have Limit To List set to true? Yu should get a message telling you to choose from the list and you cant continue until you do.
As far as I know, it isnt possible. But an idea would be to resizxe the combo so only the drop down button is visible. Then place a textbox (readonly) beside this. So now it is not possible to enter text. Then in the AFTER update event you can set the textbox to the value chosen in the combo.
If the combo box is bound to a field then you will also need to bind the text box.
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.