Here is the code I used for processing an ADO recordset
Code:
  Dim member As Field

 For Each member In myRst.Fields           

        Msgbox member.Name

        'more code goes here                      
  Next member
The rountine is used in my program for long time without problem. But after I add/remove some Reference library files a couple of times, I got an error message on member.Name: "Method or data member is not found"

When typing "." after "member", the auto-list-member list box display has different list options which has no "Name" option. when I tries to retype "Dim member as Field" line, The auto-list-member list box for types available has two lines with same name "Field". If I remove "Microsoft ActiveX Data Object 2.1 library" reference, no more double "Field" type line. Also, a early version of the same program still works fine.

Somehow I got a reference registry problem under VB IDE, but I have no idea what happened and how to fix it

Thanks very much for any help.