command button in a frame: strange phenomena

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top