Can anyone point me to some code which will delete a field from a recordset?
I have tried to use Delete Method (Fields.Delete field) but it won't allow deletion whilst recordset is open. If I close the recordset then how do I refer to the fields to delete?
What I am trying to do is:-
'Open recordset
For each field in Rs.fields
If field.name = "xyz" Then 'Remove this field form the recordset
Next field
I have tried to use Delete Method (Fields.Delete field) but it won't allow deletion whilst recordset is open. If I close the recordset then how do I refer to the fields to delete?
What I am trying to do is:-
'Open recordset
For each field in Rs.fields
If field.name = "xyz" Then 'Remove this field form the recordset
Next field