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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connecting listview control to an access database

Status
Not open for further replies.

peekay

Programmer
Oct 11, 1999
324
ZA
Is it possible to connect a listview control to an access database similar to using the data control and the flexgrid control. <p>PK Odendaal<br><a href=mailto: pko@mweb.co.za> pko@mweb.co.za</a><br><a href= > </a><br>
 
Hi,<br>To the best of my knowledge, you cannot, however, coding the connection is a simple matter <br><br>1, open the db,<br>2, create a record set using the desired SQL statement or table<br>3, move through each record in the record set and place the dat into a new list item (and its sub items).<br><br>If you want the user to be able to (dbl)click on a record and retrive it, then be sure that the primary key is one of the fields in the sub items and use that key to look up the record in a db and do what we wish with that data.<br><br>Good Luck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top