Solved

using onclick events with a listview control

Posted on 2003-10-31
3
847 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

776 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