PC Review


Reply
Thread Tools Rate Thread

command button in a frame: strange phenomena

 
 
=?Utf-8?B?QXJuZQ==?=
Guest
Posts: n/a
 
      7th Sep 2007
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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Very Strange Database Phenomena! Logo Microsoft Access 11 13th Jan 2010 09:11 AM
Making a frame visible or not using a command button Roger on Excel Microsoft Excel Programming 3 10th Dec 2009 03:35 PM
strange command button problem =?Utf-8?B?RGF2aWQ=?= Microsoft Excel Misc 0 20th Mar 2006 03:06 PM
Strange bedugging phenomena Peter van der Veen Microsoft VB .NET 1 20th Apr 2005 08:57 AM
Strange phenomena: can share files but not printer Noam Green Microsoft Windows 2000 Networking 3 12th Nov 2003 02:25 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:46 PM.