Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help needed coding selecting blocks of data in Grid

Status
Not open for further replies.

custsoft

Programmer
Aug 29, 2000
41
I am using ACcess 2000, VB6.0. I can select records from a datagrid one at a time and process them by using bookmarks but how do I select a group of records like you can in Access 2000 by selecting the first record and then pressing the shift key and selecting the second record and all of the records in between are then selected. I am assuming that you have to do this in code. I would appreciate any help. Thank you.
 
Assuming you are using a datagrid with ADO, I would react to keydown event (shift as integer), checking where the currently selected row is and seting some kind of flag (tag value or global variable), and then responding to mousedown, you check which row is NOW selected and if shift is pressed, then go through the rows between.

There are probably other ways too.

_______________________________________
There are three different kinds of people:
Those who can count, and those who cannot.

Eman_2005
Technical Communicator
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top