I there a simple way to append a new field to an existing open ADO RecordSet?
fields.append() won’t work if the RecordSet is open, and closing appears to kill the existing data.
NB: I’m using Microsoft ActiveX DataObject 2.8 Library
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can’t append fields to a recordset while it’s open.
You can create a clone of the recordset, append your required fields, open it and copy the data from the original.
The other option is to persist the recordset as xml, modify the rowset schema, add required fields & then load xml into a new recordset.