T
TC
Why do you need to create your own collection? If you want to move through
the records in a recordset, jist do this:
if .eof and .bof ' a much better way to test for this.
' empty.
else
while not .eof
sgbox ![ThisField] & " " & ![ThatField]
.movenext
wend
endif
end with
If you really want to create your own collection, create it using:
dim TmpCollection as collection
set TmpCollection = new colection
then add elements to it using the Add method of the Cllection object. This
is described in online help.
HTH,
TC
(off for the day)
the records in a recordset, jist do this:
with rs1Set rs1 = db1.OpenRecordset("DBUsers")
if .eof and .bof ' a much better way to test for this.
' empty.
else
while not .eof
sgbox ![ThisField] & " " & ![ThatField]
.movenext
wend
endif
end with
If you really want to create your own collection, create it using:
dim TmpCollection as collection
set TmpCollection = new colection
then add elements to it using the Add method of the Cllection object. This
is described in online help.
HTH,
TC
(off for the day)