Hi, I'm Pete. Welcome to JustAnswer! I'm reviewing your question now, and will post back with your reply ASAP.
Bill, this error can occur if a variable was declared without specifying a type.
For example, if a variable is declared without specifying a type, it defaults to type 'Object'.
If you have previously declared the variable type, then you may be attempting to reference an object that has been set to 'Nothing'.