Hi,
I'm a new user, and met a problem when I first using it, could you please try to give me a help? I just want my DataList object display one of the field from a recordset.
Public cn As New ADODB.Connection
Dim cnstr As String
cnstr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\test\data\testing.mdb;Persist Security Info=False;Jet OLEDB:Database Password=24022914"
cn.CursorLocation = adUseClient
cn.Open cnstr
rscategory.Open "category", cn
Set DataList1.RowSource = rscategory
Set DataList1.ListField = cateid
Then I got prompt "Compile error. Wrong number of arguments or invalid propery assignment" with ListField highlighted.
And is it possible to list more than 1 field to datalist?
Thanks for your help
Aston
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only