Subform displays empty box

B

Benny

I inserted a subform with 5 tabs. When I open up my form the subform is
empty. If I click on a different tab within my subform the text is then
displayed (and highlighed in black background)

How can I get the text to show up without having to select another tab and
then go back? And also, why is the text highlighted?

Thanks.
 
A

Allen Browne

Benny, can you provide more info about this?

There is a display bug in Access. If you use the Open event of the form to
set the Visible property of the first page to False, the screen is not drawn
properly. I'm not sure from your description if this is what's happening.

There is another display bug if a form has no records to display and no new
records can be added, but that doesn't sound like what you are seeing.

Those 2 bugs (another another one relating to disappearing vertical labels)
are described here:
Incorrect display of data
at:
http://allenbrowne.com/bug-06.html
 
B

Benny

Allen,
Thank you for you response. I do have an open event, but it sets focus on a
different part of the form---not the subform. I don't believe I have the
visibility property set to False.
 
B

Benny

Also, I removed the setfocus and the information does display. It is all
highlighted in black though. Is it possible to make it not highlighted and
still set focus elsewhere? If so, how? Thanks
 
A

Allen Browne

Not sure what's going on.

It should be possible to SetFocus to another control on the same form in the
form's Load event, unless the form loads with no records (not even the new
record.)
 
Top