Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

User Defined Recordset 1

Status
Not open for further replies.

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

 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top