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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement