Solved

using onclick events with a listview control

Posted on 2003-10-31
3
850 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Does Your Cloud Backup Use Blockchain Technology?

Blockchain technology has already revolutionized finance thanks to Bitcoin. Now it's disrupting other areas, including the realm of data protection. Learn how blockchain is now being used to authenticate backup files and keep them safe from hackers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

627 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