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

Populating a DataList control, using VB6 1

Status
Not open for further replies.

THOMASNG

Technical User
May 3, 2002
254
US
I'm trying to automatically populate a DataList control
through code. However, all I get is an empty list. I'm using VB6 and the Refill method. Can anybody help?

' In Form_Activate()

Set DataList1.DataSource = Adodc1
DataList1.DataField = "OwnerCode"

DataList1.ReFill
 

Set DataList1.RowSource = Adodc1
DataList1.ListField = "OwnerCode" [/b][/i][/u]*******************************************************
General remarks:
If this post contains any suggestions for the use or distribution of code, components or files of any sort, it is still your responsibility to assure that you have the proper license and distribution rights to do so!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top