Sorry, been gone all Thanksgiving break, but I'm having trouble understanding you too. My guess is what you want is a simple if then else statement. Assuming your using an option button or a check box...
Code:
If option1.value= true then
...
Else
...
End If
And Niggy G is right, no language will allow you to change code during runtime, its just not sensible to do so. It would make your code virtually unreadable or untraceable by a human. If you were thinking of doing it when a command button is pressed down, then I have to ask... why? For most program settings you want to use one of three objects, an option button, a check box, or a checkable menu item, I cant see any reason you would want to use anything else, however it is possible with a command button if you still think you want to. All you need to do is change the text or picture or something and then test it.
Code:
If command1.caption = "Enable X Option" then
...
command1.caption = "Disable X Option"
Else
...
command1.caption = "Enable X Option"
End If