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

DataCombo DataSource 1

Status
Not open for further replies.

briggsy79

Programmer
Feb 23, 2001
68
SE
Hi all.
How do you set the datasource etc. for a dataCombo using code. I wish to link it with an ADODC using jet 4.0. The open recordset is named adorecordset. I wouldn't have a clue how to do it i have been trying but it just isn't working.
Thanks a heap
 
You probably forgot the Set statement. It will give you an error without it. Make sure you also add the datafield and boundcolumn references.

Private Sub Form_Load()
Set DataCombo1.DataSource = Adorecordset
DataCombo1.DataField = "yourfieldname"
DataCombo1.BoundColumn = "yourfieldname"

End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top