Results 1 to 3 of 3
  1. #1
    Qubit is offline Novice
    Windows 7 64bit Access 2000
    Join Date
    Apr 2015
    Posts
    4

    My Orders form has decided to only half repaint


    I have an orders form from which you can open another form. When the second form closes and the Orders form regains focus, it is only half there...

    Before

    usually...Click image for larger version. 

Name:	Orders1.jpg 
Views:	16 
Size:	162.4 KB 
ID:	26609 Half missing Click image for larger version. 

Name:	Orders2.jpg 
Views:	16 
Size:	141.1 KB 
ID:	26610

    I've told the user to issue the Ctrl+M autokey macro (->Maximize), which does the trick, but any ideas why it's only half there????
    It's only this one form that does that - the Orders form is maximized, and the opened form is sizable, not modal.

    Cheers,
    Q.

  2. #2
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    As subsequent Forms are opened, in Access, previously opened Forms take on the size attribute of the last Form that is opened...so if Form1 opens Maximized, but Form2 doesn't, returning to Form1 will find it not Maximized.

    In the original Form, try this:

    Code:
    Private Sub Form_Activate()
      DoCmd.Maximize
    End Sub

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  3. #3
    Qubit is offline Novice
    Windows 7 64bit Access 2000
    Join Date
    Apr 2015
    Posts
    4

    My Orders form has decided to only half repaint (Solved)

    Thanks MissingLinq - I realized that about 10pm last night. What appears (not missing) is that portion of the form visible with the last sizing in place from design mode (when not maximized), coupled with the fact that the form has no border - sort of threw me.
    I'll drop that Maximize thingy in place and relieve the user from the ^M macro.

    Been doing this for a few years now...you'd think I'd learn something along the way!

    Cheers,
    Q.

    p.s. It has always annoyed me a little that unless the new form is modal (I think?) then either all open forms are maximized, or all are sizable. Seems to me that having the option of deciding the sizing for a given form should not be dependent on any other form...

    Quote Originally Posted by Missinglinq View Post
    As subsequent Forms are opened, in Access, previously opened Forms take on the size attribute of the last Form that is opened...so if Form1 opens Maximized, but Form2 doesn't, returning to Form1 will find it not Maximized.

    In the original Form, try this:

    Code:
    Private Sub Form_Activate()
      DoCmd.Maximize
    End Sub

    Linq ;0)>

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 11-01-2016, 09:04 AM
  2. Replies: 4
    Last Post: 01-25-2016, 12:44 PM
  3. Repaint or Refresh a form
    By crowegreg in forum Forms
    Replies: 1
    Last Post: 08-20-2013, 03:11 PM
  4. Bottom half of form not showing?
    By christm in forum Forms
    Replies: 20
    Last Post: 03-08-2013, 11:11 AM
  5. Query decided it didn't want to be updateable anymore
    By tylerthompson in forum Queries
    Replies: 0
    Last Post: 07-23-2009, 09:43 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums