It is working in Access.
Paste the first part in a module and
Code:
gHW = ListView1.hwnd
Hook
in the load event of the form.
alter the select case in the module as per your columnheader
________________________________________________________
Zameer Abdulla
Help to find Missing people You may be the boss' pet; but you are still an animal
Thanks Zameer. That works, though will need some tweaking to make it usable on multiple listboxes where the hidden/locked columns are more than first two. I guess I could use the Tag property for this.
Will
Be careful of the use of intellimouse(Scroll mouse) on the listview when you are running this code. Access stops responding.
________________________________________________________
Zameer Abdulla
Help to find Missing people You may be the boss' pet; but you are still an animal
I suppose the other solution would be to store an array of values taken from the database, and only populate the fields I want displayed in columns on the listview. Thereby interacting with the array instead of the control for getting at record IDs etc. (just talking out loud here). Then sorting could also be done on the arrays, but all thats a load more coding
I am just doing experiments with ListView. I will post if I find anything interesting
________________________________________________________
Zameer Abdulla
Help to find Missing people You may be the boss' pet; but you are still an animal
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.