I have a table with about 75 fields on it. I need to delete all fields
starting with a particular string ("OLD") as the first 3 characters.
When I use the structure
for each fld in .fields
if left(fld.name, 3)="OLD" then
.fields.delete(fld.name)
next fld
some of the fields get deleted and it appears to just skip over the
rest. If I rerun this loop, some more of the OLD fields will get
deleted and others will still be left behind.
I've noticed this also happens when deleting indexes.
Any ideas why? (please email me if possible)
Thanks!
Daniel