Solved

using onclick events with a listview control

Posted on 2003-10-31
3
843 Views
Last Modified: 2007-12-19
Hi,

I'm using a listview control in my access app.

would like to trigger an event that returns the value of the first column when I click a row.

I can't seem to find the way to do this?

Any help / URL's with good reference are very welcome!
0
Comment
Question by:palloquin
3 Comments
 
LVL 1

Accepted Solution

by:
Kevin_S earned 125 total points
ID: 9657424
0
 

Author Comment

by:palloquin
ID: 9657626
Hi Kev,

ThanX so far... i should have checked the MSDN myself... I'm not having my day!

No matter what I do I can't seem to attach an event...

I tried:

myListView.addOnColumnClick (mytest) AND
myListView.addOnColumnClick (mytest())

And a few more versions...

Could you please help me with an example... As I said, not having my day...

ThanX a lot!
0
 
LVL 39

Expert Comment

by:stevbe
ID: 9657837
you cannot capture the click of a particular column you can only catch the click of the control itself

Private Sub myListView_Click()
  ' your code goes here
End Sub

Steve
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now