Hi,
I vaguely remember reading somewhere that you can use ADO to create a "connectionless recordset" in code. I have come across several situations recently where this would be handy but have been unable to get it to work with trial an error or found an example. What I’m basically after is an array that can be manipulated like a recordset so movefirst, EOF etc, etc.
Something like this;
Dim myset As New Recordset
myset.Fields.Append "Field1", adBSTR, 10
myset.Fields.Append "Field2", adBSTR, 10
myset.Fields.Append "Field3", adBSTR, 10
myset.AddNew
myset![Field1] = "Testdata1"
myset![Field2] = "Testdata2"
myset![Field3] = "Testdata3"
myset.Update
myset.movefirst
Any idea's on this would be much appreciated!!
Bretto
I vaguely remember reading somewhere that you can use ADO to create a "connectionless recordset" in code. I have come across several situations recently where this would be handy but have been unable to get it to work with trial an error or found an example. What I’m basically after is an array that can be manipulated like a recordset so movefirst, EOF etc, etc.
Something like this;
Dim myset As New Recordset
myset.Fields.Append "Field1", adBSTR, 10
myset.Fields.Append "Field2", adBSTR, 10
myset.Fields.Append "Field3", adBSTR, 10
myset.AddNew
myset![Field1] = "Testdata1"
myset![Field2] = "Testdata2"
myset![Field3] = "Testdata3"
myset.Update
myset.movefirst
Any idea's on this would be much appreciated!!
Bretto