Re: combo box - select 1st item

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Way to go Dave, fighting your way through documentation
omissions to discover that trick is a significant
achievement.

Here's another way to do what you want without the need to
change the focus:
Me.Combo = Me.Combo.ItemData(0)
--
Marsh
MVP [MS Access]


dave h wrote:
>The VBA documentation for the combo box ListIndex property says that this is
>a "read only" property - this is not true as it can be used to select a row
>in the combo box. My mistake was not setting focus on the combo box first.
>
>"dave h" wrote
>> After setting the rowsource in VBA for a combo box, I need to select the
>1st
>> item for display in the text box part of the combo box.
>> Neither "Selected(0)" or "listindex = 0" work for this purpose. Must be a
>> simple answer, but I can't find a similar question on this board.

.



Relevant Pages

  • Re: Why is Suse so dammed slow?
    ... > The most glaring example of slow GUI is that while I am typing this in ... > Loading the C# documentation with StarOffice takes ... Pressing and holding the backspace key deletes the text at the speed of the ... Dave ...
    (alt.os.linux.suse)
  • Re: combo box - select 1st item
    ... I didn't know about the ItemDatatechnique - it's great ... Thanks again, Dave H. ... >>The VBA documentation for the combo box ListIndex property says that this ... My mistake was not setting focus on the combo box ...
    (microsoft.public.access.formscoding)
  • Re: parallel ditto tape drive
    ... > box to back up several unix boxes. ... Dave. ... If you are determined to do so, you need ftape. ... The documentation is very out of date - ftape is included in both ...
    (comp.os.linux.hardware)
  • Re: Strange error during boot. sm-mta??
    ... stooper, Dave wrote: ... found some good documentation on exactlly what im trying to do ... You can guarantee I will be printing this out. ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Websphere root access
    ... Miller, Dave wrote: ... > Does anyone know where there is documentation on installin/configuring ... > WebSphere App Server so it does not need to be administered ... I'm sure the documentation says this but all you ...
    (AIX-L)