My error; yes you did. You'll need to change the visibility using one of the events for the control that is getting the focus after this textbox then. -- Ken Snell <MS ACCESS "scojerroc" <scojerroc@discussions.microsoft.com> wrote in message news:ED9DED18-5B9F-4AC1-BFB7-6CB3665115C2@microsoft.com... As I mentioned in my original post, I get the same error when
Use the Exit event instead of the LostFocus event. -- Ken Snell <MS ACCESS "scojerroc" <scojerroc@discussions.microsoft.com> wrote in message news:7FAFDDB6-36EF-45FB-A52A-F6BDC03906CC@microsoft.com... Hello, I am having trouble with the Lost Focus event for a text box. I am trying to make it invisible (so I can make another visible) as the user leaves it.
I figured out the problem. If you look under the format menu you will see bring to front and back commands. By bringing the combo box to the back, thus making the text box on top, when you unhide the text box it will show up on top of the combo box, so I don't have to hide the combo on the lost focus event. On the combo's lost focus, just unhide the text box and it will be on top which makes
Michael Conroy <MichaelConroy@discussions.microsoft.com> wrote: I agree, it is a loop and that may be why MS doesn't allow this. However, suppose I set the focus somewhere else when the combo looses control, say to the form's close button. I would still get the error that I can't change focus from the combo to something else, while the combo has the focus. And this is in the Lost Focus
It makes for a nicer form. For example, I want the text box to display an employee as firstname then lastname, however, the combo box does the searching lastname then firstname. Once the selection has been made, the combo is hidden and the new selection is displayed properly in the text box. I am having trouble hiding the combo when the combo looses the focus. Currently, when you click on