Jul 15, 2009 #1 Simboti1 IS-IT--Management Sep 12, 2008 31 BW How do I add records to a User Defined Recordset? My declaration is as follows: - Dim Rs as ADODB.Recordset Set Rs = NEW ADODB.Recordset With Rs.Fields .Append "Field1", adVarChar, 20 .Append "Field2", adVarChar, 10 End With
How do I add records to a User Defined Recordset? My declaration is as follows: - Dim Rs as ADODB.Recordset Set Rs = NEW ADODB.Recordset With Rs.Fields .Append "Field1", adVarChar, 20 .Append "Field2", adVarChar, 10 End With
Jul 15, 2009 1 #2 dilettante MIS Apr 13, 2001 4,475 US You just .Open it then begin calling .AddNew, setting field values, calling .Update as usual. You may have trouble using adVarChar instead of adVarWChar but then ADO may simply coerce it for you. Upvote 0 Downvote
You just .Open it then begin calling .AddNew, setting field values, calling .Update as usual. You may have trouble using adVarChar instead of adVarWChar but then ADO may simply coerce it for you.