[VBA]combobox.Value geeft listindex

Pagina: 1
Acties:

  • -Klimaks-
  • Registratie: Maart 2001
  • Laatst online: 08:04
Combobox toegevoegd op form
Opmaak dmv volgende code
code:
1
2
3
4
5
6
7
    With cboTop
      .RowSourceType = "Value List"
      .RowSource = "1;2;3;5;10;20;25;50;100"
      .ColumnCount = 1
      .BoundColumn = 1
      .ColumnHeads = False
    End With

Maar als ik nu de .value opvraag, krijg dezelfde waarde als .listindex, zoek hier al een kleine 2 uur achter, maar kan het niet vinden. Iemand een idee?

In those days spirits were brave, the stakes were high, men were REAL men, women were REAL women, and small furry creatures from Alpha Centauri were REAL small furry creatures from Alpha Centauri.
Zaphod in The Hitchhikers Guide To The Galaxy


  • Skinny
  • Registratie: Januari 2000
  • Laatst online: 25-07 18:17

Skinny

DIRECT!

ipv van .value moet je volgens mij .boundtext (oid) gebruiken..

SIZE does matter.
"You're go at throttle up!"


  • -Klimaks-
  • Registratie: Maart 2001
  • Laatst online: 08:04
:? Na de hele accesstoepassing gesloten te hebben werkt het wel. Laten we daar maar niet over nadenken en gewoon gelukkig om zijn :+

In those days spirits were brave, the stakes were high, men were REAL men, women were REAL women, and small furry creatures from Alpha Centauri were REAL small furry creatures from Alpha Centauri.
Zaphod in The Hitchhikers Guide To The Galaxy