Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simple Question
Message
De
18/09/2002 12:27:22
 
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Titre:
Simple Question
Divers
Thread ID:
00701882
Message ID:
00701882
Vues:
52
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
Fil
Voir

Click here to load this message in the networking platform