Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

using onclick events with a listview control

Posted on 2003-10-31
3
Medium Priority
?
855 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 500 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

876 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