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

How to get data from table and place in listview control?

Status
Not open for further replies.

chiuchimuN

Programmer
Apr 24, 2002
29
US
I have two table with fields:

ID,Date ,Payment
1 , 1/5 , 100
3 , 1/5 , 150
1 , 2/5 , 100
2 , 2/5 , 300
3 , 2/5 , 150
1 , 3/5 , 100
etc...

ID , Name ,Due ,Tele1 , Tele2 , Address , ....
1 ,John Do ,100 ,(310)-..
2 ,Mary J ,110
3 ,Bill W ,100
etc...


I want to place values in listview control(newer version that has the checkbox in list) and look like:

ID, Name , 1/5 , 2/5 , 3/5 .....
1 ,John Do , 100 , 100 , 100
2 ,Mary J , , 300 ,
3 ,Bill W , 150 , , 150
etc....

I can't figure out the code I need to write because most Books and MSDN show examples of bound controls(very little on implementing unbound controls. I can't use a cross tab query because I need features available in listview.

Help much appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top