Alright, So I am moving from access 2003 on windows xp, to access 2010 on windows 7.
When opening my form on access 2003, the docmd.maximize opens the form all the way to the LEFT side of the access window, this is what I want...
While opening the form on 2010, on windows 7... the form window is about an inch from the left, and about an inch down from the top.
I am wondering what would cause this? Did the default area for Twips change? <~ shot in the dark...
So here is the Form_Current code... it is the same code on both systems.
Code:
Private Sub Form_Current()
On Error Resume Next
Dim oTD As DAO.Database
Application.CommandBars.DisableAskAQuestionDropdown = True
DoCmd.Maximize
Me.lblUesr.Caption = Environ("username")
DoCmd.ShowToolbar "Ribbon", acToolbarNo
Set oTD = CurrentDb.TableDefs("tblCred")
If Err.Number = 3265 Then
DoCmd.TransferDatabase acLink, "Microsoft Access", Environ("userprofile") & "\My Documents\Lift\Credentials.mdb", acTable, "tblCred", "tblCred"
DoCmd.TransferDatabase acLink, "Microsoft Access", Environ("userprofile") & "\My Documents\Lift\Credentials.mdb", acTable, "tblWebCreds", "tblWebCreds"
End If
End Sub
The On Error Resume Next is to account for Access 2003 three users, so DoCmd.ShowToolbar "Ribbon", acToolbarNo does not give them an error... Any ideas?