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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Controls position are moved upon subform.setfocus

Status
Not open for further replies.

TTThio

Programmer
May 3, 2001
185
US
Hi guys,

Now I'm really overwhelmed with 'new' things that always happened to my apps, just after fixing a problem.

This time,
on main form cbobox_afterupdate()
I move the focus to the subform so that I can go to certain record (navigating through).

Code:
Docmd.GoToControl "Subform"

When I stepped into the code, I found that after executing the code line, the whole controls in the main and subform are repositioned, moved to the left about 1/2 inch, so that I lost a little bit of each control size/part.

Any reason for this or anybody knows how to do the other way?

Thanks a lot,
Tin Tin
 
Is your subform too big for the main form.
Is there a scroll bar at the bottom of the main form (right-left scroll bar)
If so then make you subform slighty smaller so when you view the main form there is no scroll bar.
you may have to do this a couple of times making the subform slightly smaller each time.

DougP, MCP

Visit my WEB site to see how Bar-codes can help you be more productive
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top