Is there a way I can get the user to input a variable that will then write to hard code so that it doesn't change the next time the app is opened. But can be changed by running that code again.
Have you investigated the Tag property? Your code could reference that. Or you could store the value in a table field. (Yes, I know it's not good practice)