A
Arne
On a form, I have a frame with two refedit controls: refRunStart and
refRunEnd. Often, when setting the range for a run, the start of a new run is
the end of the previous one, so I added a command button:
Private Sub cmdStartIsEnd_Click()
refRunStart.Text = refRunEnd.Text
End Sub
When I place this command button outside the frame that contans the refedit
controls everything works just fine. However, when I place it inside the
frame (which for logic's sake I would prefer), strange things start
happening: the button won't work on the first click, the value of refRunEnd
is merely appended to that of refRunStart and the program wont stop at a
break I place in the click event of the button. The program may even get
stuck. Am I missing something here?
I am using XL2003 SP2.
TIA
refRunEnd. Often, when setting the range for a run, the start of a new run is
the end of the previous one, so I added a command button:
Private Sub cmdStartIsEnd_Click()
refRunStart.Text = refRunEnd.Text
End Sub
When I place this command button outside the frame that contans the refedit
controls everything works just fine. However, when I place it inside the
frame (which for logic's sake I would prefer), strange things start
happening: the button won't work on the first click, the value of refRunEnd
is merely appended to that of refRunStart and the program wont stop at a
break I place in the click event of the button. The program may even get
stuck. Am I missing something here?
I am using XL2003 SP2.
TIA