To change the access code in GoToMyPC, log in to your GoToMyPC account, navigate to the Preferences or Settings section, and look for the option to change your access code. Enter a new code, save your changes, and ensure the new code is communicated to anyone needing access.