Re: Listview in VBA

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Try:
me.lv.Object.selectedited.subitem(5)

--
Best regards,
___________
Alex Dybenko (MVP)
http://accessblog.net
http://www.PointLtd.com


"kflash" <kflash@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:F229B20B-8B7E-49F1-B770-1E054B3869D1@xxxxxxxxxxxxxxxx
Hi,

I'm using a Listview control in Access. I've used this control in VB but
this is the 1st time I've tried to use it in access. I'm having trouble
figuring out a way to determine which item is selected in the listview.
I've got an ID associated with each item in the listview.

In VB I would do it this way:
lv.selectedited.subitem(5)

The PEM's are different in VBA. Can anyone share a way to determine any
information about the selected item in a listview in Access?

Thanks,

Kflash

.



Relevant Pages

  • Re: Listview Double Click
    ... But why do you need records on a form in order to work with listview? ... Best regards, ... Alex Dybenko (MVP) ... "Alex Dybenko" wrote: ...
    (microsoft.public.access.modulesdaovba)
  • Cross-thread operation not valid questions
    ... A form containng several tabs, one of which contains a ListView ... all items in the ListView control on the main form. ... Dim lvwItem as ListViewItem ... unless I insert Application.Doeventsinto the loop. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: ListItem has it been replaced
    ... listview control. ... > Private a As Integer, ... The compile error was when the ListItem in the option ...
    (microsoft.public.access.forms)
  • Re: ListView ownerdrawn performance
    ... > I've been testing a listview control on an app I'm creating which is in ... I had to derive a new control from ListView so I could enabled ... > noticeable lag when scrolling the vertical bar up and down. ... Chris ...
    (microsoft.public.dotnet.framework.windowsforms)
  • ListView ownerdrawn performance
    ... I've been testing a listview control on an app I'm creating which is in ... I had to derive a new control from ListView so I could enabled double ... noticeable lag when scrolling the vertical bar up and down. ... Is this performance hit normal for ownerdrawn listview controls? ...
    (microsoft.public.dotnet.framework.windowsforms)