Alright, So I am trying to prepare myself for a rolling update of windows 7 machines running access 2010.
My current program is running on 2003, and all is happy in this world.. However, when opened in 2010.. the navigation pane is showing, displaying sensitive back end files. I have custom menus setup, so the users should not be seeing any access menus at all.
I am thinking the setting from 2003, into 2010 is not sticking and letting default menus and the navigation pane load... Is there a way I can have the menu's set to custom1 "Blank menus" through the vba code? This might stick better then the "current database" or "startup" options...
I also found this bit of code, and it seems to work (Hides the Navigation pane).. however it re positions my form to the center of the page... very odd.. normally its at the top left, set as do.maximize.
Code:
'DoCmd.RunCommand acCmdWindowHide
'DoCmd.NavigateTo “acNavigationCategoryObjectType”
Here is my form current event..
Code:
Private Sub Form_Current()
On Error Resume Next
Dim oTD As DAO.Database
Application.CommandBars.DisableAskAQuestionDropdown = True
DoCmd.Maximize
Application.CommandBars.DisableCustomize = True
'DoCmd.RunCommand acCmdWindowHide
'DoCmd.NavigateTo “acNavigationCategoryObjectType”
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