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!

Populating a Datalist control

Status
Not open for further replies.

Rechmali

Programmer
Jun 14, 2004
17
GB
Hi,

I was wondering if anyone knows how to programmatically populate a datalist.

I am able to bind it, but have a feeling I read somewhere about doing it in the program so that I can play around with the data first.

I have in mind an AddNew property, but can't seem to work out how to do it.

Below is code using a bound record source.

I would really appreciate any input,

Many thanks,

Chris

Code:
With dblDiagnosis
    
    Set .RowSource = rs
        .ListField = "Diagnosis"
        .BoundColumn = "DiagID"
        
End With
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top