Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Textbox on form not visible until it's clicked

Status
Not open for further replies.

N2Life

Programmer
Dec 21, 2002
90
US
Am experiencing some odd behavior with an Access 2002 form. I added a textbox to the form. The Control Source is: ="Hello World" (Just an example; doesn't matter what I put there.) When the form loads, this textbox is nowhere in sight. But if I click with the mouse where the textbox is located, the text suddenly appears. Can anyone tell me WHY this is happening?

I have worked around it by adding code to the form's On Load event to set focus to this textbox. That, of course, makes the text appear in reverse video. To remedy that, I added code to then set the focus to the Close button on this form. These gyrations should not be necessary. Thank you.
 
Is the control possibly obscured by another control (maybe the label from an adjacent control)? Select the control in design view, then on the menu select Format->Bring to front. As an alternative, I would delete the control and place another.

Ken S.
 
The textbox was not obscured by another control. However, I did click on 'Bring to front'; it made no difference.

I added a new control. Had the same problem.

It looks like I must add this to my list of crazy Microsoft things that you never see mentioned in any book.

Thank you for trying, Ken.
 
Why not using the DefaultValue property instead of the ControlSource ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top