Re: Listbox selection
- From: "Dan Artuso" <dartuso@xxxxxxxxxxxxxxxx>
- Date: Fri, 1 Apr 2005 18:26:03 -0500
Hi,
If I do this:
Me.lst1.Selected(1) = True
Then the row does becomes highlighted. Are you doing it differently?
--
HTH
Dan Artuso, Access MVP
"Joe Holzhauer" <joedvm@xxxxxxxxxxxxx> wrote in message news:5Bj3e.28135$hU7.13382@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> I'm trying to figure something out about listboxes, any help would be
> appreciated...
>
> Is there a difference between the way a row is selected by a user and the
> way it is selected programmatically? The reason I ask is that when I click
> on a row manually, it becomes highlighted (white text, black BG). When I
> select one programmatically, it gains a border but does not become
> highlighted. Is there a difference?
>
> Here's the context:
> I have a list of items that I want a user to be able to hit 'Y' or 'N' for.
> After the user has hit one or the other, depending on the sort options
> selected, the rowsource is requeried, which often moves the row just rated
> to the bottom of the list. So, I want to save the index of the selected
> row, then reselect that index so that the selected row stays in the same
> place but the next item is selected.
>
> I'm not sure if that's clear, but maybe someone can get me started.
>
> Thanks again!
> Joe
>
>
.
- References:
- Listbox selection
- From: Joe Holzhauer
- Listbox selection
- Prev by Date: Re: Table Link from SQL
- Next by Date: Re: OpenReport from form Problem
- Previous by thread: Listbox selection
- Next by thread: Summing Text Box in subform with actual table columns...
- Index(es):
Relevant Pages
|