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!

Repaint won't work

Status
Not open for further replies.

dkaplan

Programmer
Jan 29, 2001
98
US
I have a form which is larger than the active window. If a control below the active window has focus, an attempt to navigate to the next record produces garbage. (It looks like Access is trying to paint the part of the form which is out of view, without clearing the active window.) Placing me.repaint in the On Current event did not help. (Got & lost focus did not work either. I even tried "me.repaint" inside of a button.) Finally I was able to semi solve the problem by putting the following code into the form's On current event:

Screen.ActiveForm.SelWidth = Screen.ActiveForm.WindowWidth

i.e. a fake resize event. Is it really necessrry to go to this extreme? Oh, and it causes an annoying flicker.

Any ideas?
 
This doesn't address your issue directly, but if you have more than you can fit into the screen you might consider a tabbed form.
 
Thanks 930driver. I'll keep the solution in my hip pocket. For now, though, the user prefers everyting on one page.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top