Oh, you don't want the ribbon! So how does it behave when it's clicked? Does it work go offline and does it look like the db gets re-loaded?
The Offline code seems to be that button but I think that Access is doing more when the button is clicked.
Here's an update:
I don't have Sharepoint so it makes it harder to resolve.
The Offline code seems to be that button but I think that Access is doing more when the button is clicked.
Here's an update:
Code:
Public Function ToggleOfflineMain(AccAppToToggle As Access.Application, _
AccAppPath As String)
With AccAppToToggle
.CloseCurrentDatabase
.Quit
End With
Set AccAppToToggle = Nothing
Set AccAppToToggle = New Access.Application
With AccAppToToggle
.OpenCurrentDatabase AccAppPath
.RunCommand acCmdToggleOffline
.Visible = True
End With
Set AccAppToToggle = Nothing
Application.Quit
End Function