S
scott w t
i created an ado memory recordset as follows
Dim r As New ADODB.Recordset
With r
.Fields.Append "Field1", adVarChar, 64
.Open
.Sort = "[Field1] ASC"
End With
then i added 2 records to r and verified that they were actually "there":
record 1 is "AAA" and record 2 is "BBB"
then i set the recordset property for a listbox on an open form as follows
Set lbox.Recordset = r (lbox has 1 column)
now lbox.ListCount returns 2, as it should, but the lbox shows 2 blank
lines, lbox.ItemData(0) and lbox.ItemData(1) both return NULL,
lbox.Column(0,0) and lbox.Column(0,1) both return NULL
is there any way to make this really work? thanks
Dim r As New ADODB.Recordset
With r
.Fields.Append "Field1", adVarChar, 64
.Open
.Sort = "[Field1] ASC"
End With
then i added 2 records to r and verified that they were actually "there":
record 1 is "AAA" and record 2 is "BBB"
then i set the recordset property for a listbox on an open form as follows
Set lbox.Recordset = r (lbox has 1 column)
now lbox.ListCount returns 2, as it should, but the lbox shows 2 blank
lines, lbox.ItemData(0) and lbox.ItemData(1) both return NULL,
lbox.Column(0,0) and lbox.Column(0,1) both return NULL
is there any way to make this really work? thanks