Option Button!

mapat

Registered User.
Local time
Today, 03:13
Joined
Feb 2, 2007
Messages
176
hello,

I have a an option button, txtBoxA, and txtBoxB. txtBoxA already has a number in it. Now, when checking on the option button I want that same number contained in txtBoxA to show in txtBoxB. If anyone could give me a hand I would really appreciate it

thank you
 
Code:
Private Sub YourOptionButton_Click()
  If Option5 Then txtBoxB = txtBoxA
End Sub
 
Code:
Private Sub YourOptionButton_Click()
  If Option5 Then txtBoxB = txtBoxA
End Sub

It's better to put the code in the AfterUpdate event of the Option Frame instead of the click event of the option button. You can write less code that way and can set code to each option without having to do it in each button.
 
It's better to put the code in the AfterUpdate event of the Option Frame instead of the click event of the option button. You can write less code that way and can set code to each option without having to do it in each button.
That would certainly be true, Bob, if there were an option frame or more than one option button! But the original poster here made no reference to either of these things!
 
True, I made an inference since normally a single option button usually isn't used, but you are correct in that they might be doing that.
 

Users who are viewing this thread

Back
Top Bottom