Results 1 to 5 of 5
  1. #1
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 10 Access 2013 32bit
    Join Date
    Feb 2011
    Posts
    1,596

    Me.Move not taking effect

    I have a simple popup form with a Me.Move command in its OnOpen Event:
    Code:
    Me.Move Left:=3600     '2-1/2 inches
    The documentation seems to vary with respect to syntax, e.g., "Me.Move 3600" or "Me.Move (3600,0). But so far I can't get any of the statements I've tried to take effect.

    Maybe something I've missed in the form's property sheet?
    Click image for larger version. 

Name:	000.jpg 
Views:	11 
Size:	107.4 KB 
ID:	46247

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    50,352
    Code works for me.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 10 Access 2013 32bit
    Join Date
    Feb 2011
    Posts
    1,596
    I also don't know why "Auto Center" doesn't work as well. If it did, I wouldn't even bother with a Move command.

  4. #4
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    9,653
    Works for me too, even if the form is modal. Open it, drag it to another far away spot, save, close and reopen and see what you get.
    Alternatively, perhaps your code is such that the line doesn't even get executed. You did step through to be sure of that?
    - "doesn't work" doesn't help. Implement changes in copies of your database.
    Iím telling everyone it's good to eat dried grapes. Itís all about raisin awareness.

  5. #5
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 10 Access 2013 32bit
    Join Date
    Feb 2011
    Posts
    1,596
    You did step through to be sure of that?
    Yes, only this time I didn't press F5 at the end of the OnOpen code to Continue and then discovered "this":
    Code:
    Private Sub Form_Load()
    DoCmd.MoveSize 1, 1
    End Sub
    This app is older than dirt and I'm not sure I've ever used DoCmd.MoveSize since the instance seen here. Should have kept the debug stepping going until the form actually opened after all the events had fired. Sorry to have taken up everyone's time.

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

Similar Threads

  1. OrderBy specified in OnOpen event not taking effect
    By GraeagleBill in forum Reports
    Replies: 4
    Last Post: 03-21-2016, 11:53 AM
  2. Replies: 3
    Last Post: 12-11-2014, 11:26 AM
  3. Mouse-Over Button Effect Issue
    By McArthurGDM in forum Forms
    Replies: 4
    Last Post: 08-07-2014, 03:10 PM
  4. Replies: 5
    Last Post: 06-16-2013, 05:25 PM
  5. Calculations Per Row Effect
    By gatsby in forum Access
    Replies: 29
    Last Post: 05-26-2013, 07:33 PM

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