TempVars is a collection of objects. You have an object named GoToRecord in that collection? If so, I'd say you should not be using the name of a method that belongs to the DoCmd object. Regardless, the issue is likely that you have not associated an object (form) to ShelterName. It would be like me telling you to go to house number 154 without giving you the name of the street. You would need to at least preface that with Me, but I can't tell if you ought to be using the Forms! reference instead.
EDIT - could even be strSubFormName or CallingForm? Can't tell what's what so...
Also, to retain indentation and formatting of code, enclose code in code tags (# on forum toolbar)
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.