Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simple Question
Message
From
18/09/2002 12:27:22
 
 
To
All
General information
Forum:
Visual Basic
Category:
Other
Title:
Simple Question
Miscellaneous
Thread ID:
00701882
Message ID:
00701882
Views:
51
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
Map
View

Click here to load this message in the networking platform