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

    Me.Move x, Y

    The code snippet below taken from a forms code sheet is intended to position the form per the MOVE method. The "X" positioning is correct, but the form opens with the vertical orientation seemingly centered, rather than at the top of my monitor.



    Code:
    Option Compare Database
    Option Explicit
    Dim intPCHELPTop As Integer
    Private Sub Form_Open(Cancel As Integer)
    '*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
    ' Nominal position for the PC HELP scenario is global XMove
    '*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
    XMoveSet = XMove
    intPCHELPTop = 0
    
    End Sub
    
    Private Sub Form_Load()
    '*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
    ' Nominal position for the PC HELP scenario (User can override with form's set option)
    '*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
    Me.Move left:=XMoveSet, top:=intPCHELPTop
    
    End Sub

  2. #2
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 10 Access 2013 32bit
    Join Date
    Feb 2011
    Posts
    1,919
    The code:
    Code:
    Private Sub Form_Load()
    '*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
    ' Nominal position for the PC HELP scenario (User can override with form's set option)
    '*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
    
    DoCmd.MoveSize XMoveSet, 0
    MsgBox Me.WindowLeft & " vs " & XMoveSet
    
    End Sub
    The results:
    Click image for larger version. 

Name:	000.jpg 
Views:	10 
Size:	14.5 KB 
ID:	33478 Anyone explain the discrepancy before I go completely insane? At 1440 twips/inch that's a 2 inch discrepancy!

  3. #3
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 10 Access 2013 32bit
    Join Date
    Feb 2011
    Posts
    1,919
    Issue being abandoned. See thread at https://www.accessforums.net/showthread.php?t=71524

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

Similar Threads

  1. WHAT! Can't move the focus
    By GraeagleBill in forum Programming
    Replies: 7
    Last Post: 08-18-2016, 11:13 PM
  2. Replies: 3
    Last Post: 12-11-2014, 11:26 AM
  3. move database
    By fanfan2 in forum Access
    Replies: 3
    Last Post: 05-27-2011, 10:25 AM
  4. move value in column to row
    By Avi in forum Access
    Replies: 5
    Last Post: 05-04-2011, 12:41 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